Locked

Pass the Dictionary check first

Everything after it builds on dictionaries. Each rep in the check has to be passed without opening the solution. Hints and Basics are fine.

Still to clear · 8 of 8

Continue the check

Preview · where this ladder is heading

Capstone: Valid Anagram

Given two strings s and t, return True if t uses exactly the same characters as s, each the same number of times (in any order), and False otherwise. Characters are case-sensitive.

Aim for O(n) time.

ins = 'anagram', t = 'nagaram'outTrue
ins = 'rat', t = 'car'outFalse
ins = 'aab', t = 'abb'outFalse

You can read it now. The editor opens when the check is cleared.