Skip to content
RED SAG Skills
medium10 pts · first answer countshash-mapcounting

Fixed array or map for letter counts

You check whether two lowercase English words are anagrams by counting letters. Why do many solutions use an array of 26 instead of a hash map?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions