How would a read query on the trie work?

Search Typeahead

Database layer:
Let’s first dig deeper into the trie we talked about earlier.
Q: How would a read query on the trie work?

How do you store a trie (or for that matter any tree) in the db ?

Click here to start solving coding interview questions