How does a trie differ from a binary search tree (BST)?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Compare a trie with a binary search tree as structures for storing and looking up keys. Tests understanding of how each one branches, lookup cost in terms of key length and key count, prefix and range queries, memory use, and when to choose each.