Shortest Unique Prefix
CodingPhoneSoftware EngineerReported Oct, 2026New
Company question banks are included with the Insider plan.
Given an array of strings words, find for each word the shortest prefix that distinguishes it from every other word in the array. A prefix distinguishes a word when no other word in words...