Alien Dictionary — Topological Sort

Recover a letter ranking for an unknown alphabet that puts a copied word list in order, or return nothing if no ranking fits.

Topological Sort · Hard

More in Topological Sort

All algorithm problems