← Questions

Alien dictionary

0
MicrosoftUberCodingLast asked Aug 2026

You get a list of words sorted in the dictionary order of an unknown alphabet. Derive an order of the letters that is consistent with it, or report that none exists. Explain how you build the graph from adjacent words, the prefix edge case, and cycle detection. Only the title of this report was public; the details follow the common version of the problem.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding