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.

Practice More Questions

Interview question asked to Software Engineers interviewing at Kabbage, Strava, WePay and other companies. Original question asked: Alien Dictionary Order.