Alien Dictionary

Alien Dictionary

You are given an array of strings words, already sorted according to the lexicographical order of an unknown alien language. Infer one valid ordering of the characters used in t...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: