Back to DSA sheet
Alien Dictionary
HardGraphsGiven words sorted lexicographically in an alien language, derive a valid ordering of its letters, or return empty if none exists.
Constraints
- 1 <= words.length <= 100
- Lowercase letters
Sheets
Blind 75NeetCode 150NeetCode 250
alien-dictionary.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.