Concept Flow - Prefix Search Using Trie
Start at root node
For each char in prefix
Check if char child exists?
No→Prefix not found
Yes
Move to child node
After last char
Collect all words from this node
Return list of words with prefix
Start from the root, follow each character of the prefix down the trie. If any character is missing, prefix not found. Otherwise, collect all words below the last node.
