MediumScenarioData structures and algorithms
How would you check whether two strings are anagrams?
This answer is part of Pro
14 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat is the time complexity of dictionary and set operations in the worst case?Next How do you rotate a list by k positions?