Topological Sort - Alien Dictionary (Infer Character Order)
Given the following input words: ["wrt", "wrf", "er", "ett", "rftt"], what is the output order of characters returned by the optimal alien dictionary solution using BFS topological sort?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions