← Quiz: Tries (Prefix Trees): all 15 questions
Quiz: Tries (Prefix Trees) · Question 1 of 15
What does the end-of-word flag in a trie node tell you?
What does the end-of-word flag in a trie node tell you?
- A.That the node has no children
- B.That some stored word finishes exactly at this node
- C.That the node is a leaf in every case
- D.That the prefix is unique
Answer & explanation
Correct answer: That some stored word finishes exactly at this node
"car" ends at a node that still has children ("card", "care"), so ending and being a leaf are different things.
Can you get the rest right without peeking?
Take the timed Quiz: Tries (Prefix Trees) quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →