Skip to content

Maximum Total Importance of Roads

A Medium coding interview problem in the Graphs pattern.

Likely pattern

Graphs

BFS, DFS, union find and topological order over nodes and edges.

Recognition cue: Grids of cells, connectivity, islands, dependencies or prerequisites.

Do not confuse it with

Topics

  • Greedy
  • Graph
  • Sorting
  • Heap (Priority Queue)
  1. 1Medium
  2. 2Medium
  3. 3Medium
  4. 4Medium
  5. 5Medium
  6. 6Medium
  7. 7Medium
  8. 8Medium