Practice40 min
Practice: Hash Keys & Buckets
Designing the right hash key: char-count signatures, frequency buckets, and length-prefix encoding.
These three are all about designing the key or bucket structure: a canonical signature that makes anagrams collide, count-indexed buckets that sidestep sorting, and a length-prefix encoding that survives any character in the input.