MetaCodingMembers
Shortest Unique Prefix
Members only
For each word in a list, return the shortest prefix that uniquely distinguishes it from every other word, preserving the original input order. Solved with a Trie tracking per-node pass counts. The var...
SWE
trie
string
medium
Frequency
Single report
Last asked
2026-06-18
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
