Tries
107 / 170TriesLesson 4 of 4About 45 min
Two problems rebuilt cold, plus the honest answer about when a set is better.
You must implement autocomplete: given a typed prefix, return every stored word beginning with it. Which structure, and why?
You have solved this one before. Rebuild it from scratch without looking at your old submission. If the approach does not come back within a few minutes, that is the signal that it needs another pass.
You have solved this one before. Rebuild it from scratch without looking at your old submission. If the approach does not come back within a few minutes, that is the signal that it needs another pass.