Problem bank
HardAdvanced Graphs LeetCode premiumNeetCode 150 · #97/150

Alien Dictionary

  1. 1
    Learn the pattern

    Weighted edges → Dijkstra; connectivity questions → Union-Find; DAG ordering → topological sort.

  2. 2
    Trace your version

    Paste your solution into the workspace and watch every step execute.

    Open workspace
  3. 3
    Solve it

    Note: submitting this one needs a LeetCode premium subscription — the pattern is still worth studying.

Swim in Rising WaterCheapest Flights Within K Stops