Skip to content

Maximum Segment Sum After Removals

A Hard 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

  • Array
  • Union Find
  • Prefix Sum
  • Ordered Set
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard