Arrays & Hashing is a repeated product-company interview pattern because it tests whether you can turn a brute-force idea into a predictable invariant.
Open on LeetCodeGiven two strings, decide whether one can be rearranged to form the other.
s = 'anagram', t = 'nagaram' -> true
s = 'rat', t = 'car' -> false
Try framing your own approach first. The 30 seconds you think before peeking is where learning happens.
Reveal the approach first.
Your rating tunes when this problem shows up again.