Skip to content

Conversation

@eriktuantran
Copy link

Change summary:

Using smap[i] where 0 < i < smap.size() will insert the key i into the map if such key does not already exist (link)
This is absolutely not what we want.
The fix is to iterate the smap, get the key and compare the value to tmap.

@eriktuantran eriktuantran changed the title [Bugfix][valid-anagram] Fix wrong iteration of the smap May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant