#269

Alien Dictionary

hard· Advanced Graphsruns: 0

There is a new alien language that uses the English alphabet, but the order of letters is unknown. You are given a list of strings words from this language's dictionary, sorted lexicographically. Derive the order of letters in this language. Return any valid string of unique letters representing this order, or empty string if no valid order exists.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.