Recover the Letter Order of an Unknown Alphabet
Asked at Uber · Coding Questions · Difficulty: Hard · Last asked Mar 4, 2026
A language uses the lowercase English letters, but the order of its alphabet is unknown. You are given a list of `words` that is sorted in ascending dictionary order according to that unknown alphabet. Recover an alphabet order that is consistent with the list.
Loading the problem…