Alien Dictionary
You are given an array of strings words sorted according to the lexicographical order of an unknown alien alphabet. Return one valid ordering of all characters in that alphabet.
For each adjacent p...
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:
