⚡ Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 20m 23s17 days 22 hours 20 minutes 23 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 20m 23s17 days 22 hours 20 minutes 23 seconds.

Sign in to watch this lesson
Algorithms - Strings · 4:52
A trie stores a set of words as a tree of letters, so shared prefixes are kept once and "how many words start with p?" costs one step per letter of p, however many words there are. We build one from six words, add pass counters for prefix counts and deletion, lay it out as an array of child indices to see its O(m·k) memory, time it against scanning every symbol on a Mac, and finish with the binary trie that finds the maximum XOR pair.