Deep Dive

Alien Dictionary

269. Alien Dictionary · Ordering · 73 of 78

1/12

An alien dictionary

ewrtf
In this lessonStep 1 of 12 · ← → keys
The question

You get a list of words sorted in an unknown alphabet. Work out the order of its letters. Comparing neighbouring words gives rules, and a topological sort turns the rules into an order.