26.5 Exercises
Factual
Suppose we use the following trie to represent a map. What would
get("sea")
return? What aboutget("sell")
?
Consider the Trie-based set below. What does
keysWithPrefix("sp")
return? What nodes does it visit during this call?
Metacognitive
Last updated