Domanda di colloquio di SamCart

Find out if two strings are anagrams.

Risposta di colloquio

Anonimo

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.