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.

Community Answers

1 answer from the community

Unlock Full Access

Answer any un-answered question from our database to unlock all community answers for 30 days.

Give & Take

Practice More Questions

1 answer published. Last candidate submission on Sep 25 2026, 9:42am PDT. Interview question asked to Software Engineers interviewing at BigBasket, DataRobot, Redfin and other companies. Original question asked: Alien Dictionary Order. Question last reported by a candidate interviewing at Odoo for a Software Engineer interview on Sep 17 2026, 5:14pm PDT.