Coding

Alien Dictionary Order

Derive the alien dictionary order from a sorted list of alien words.

Input: words = ["z","x","z"]

Output: "" (Empty String)

Explanation: The letter 'z' cannot come before 'x' and then suddenly after 'x', creating a cycle and making the dictionary invalid.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions