← OYO questions
CodingReported in a candidate post, Nov 2020

Shortest Unique Prefix

Filed under OYO · Also reported at Sigmoid

Given an array of strings, find the shortest unique prefix for each word in the list. Assume that no word is a prefix of another word in the list unless identical.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.