Pregunta de entrevista de SamCart

Find out if two strings are anagrams.

Respuesta de la entrevista

Anónimo

2 feb 2016

You can either sort the strings or add each letter of each string to a key value store where key is a letter that exists in the string and value is the number of times it exists, and compare the two.