HardAdvanced Graphs LeetCode premiumNeetCode 150 · #97/150
Alien Dictionary
- 1Learn the pattern
Weighted edges → Dijkstra; connectivity questions → Union-Find; DAG ordering → topological sort.
- 2Trace your version
Paste your solution into the workspace and watch every step execute.
Open workspace - 3Solve it
Note: submitting this one needs a LeetCode premium subscription — the pattern is still worth studying.