• Home

Graphs

Graphs

Depth-First Search (DFS)

Problem: 200. Number of Islands

function myFunction(): number {
  return 0;
}

Breadth-First Search (BFS)

Problem: 127. Word Ladder

function myFunction(): number {
  return 0;
}

Topological Sort

Problem: 207. Course Schedule

function myFunction(): number {
  return 0;
}

Union Find

Problem: 547. Number of Provinces

function myFunction(): number {
  return 0;
}