Alien Dictionary / Recover Character Order from Sorted Words

Problem: Alien Dictionary Character Order

You are given an array of strings words. The words are sorted lexicographically according to an unknown alien alphabet order.

Infer the relative order ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: