Skip to content
Today's problem
Algorithms
Algorithms
Roadmap
Problems
Articles
CS
Algorithms
/
2D Matrices
Spatial
Intermediate
2D Matrices
Explore 2D Matrix algorithms including BFS and DFS traversals.
5
Algorithms
✓
Custom inputs
Algorithms in this module
01
Matrix BFS
O(R × C)
time
·
O(R × C)
space
▶ Visualize
02
Matrix DFS
O(R × C)
time
·
O(R × C)
space
▶ Visualize
03
Spiral Matrix
O(R × C)
time
·
O(1)
space
▶ Visualize
04
Minesweeper
O(R × C)
time
·
O(R × C)
space
▶ Visualize
05
Rotting Oranges
O(R × C)
time
·
O(R × C)
space
▶ Visualize
Every 2D Matrices page
2D Matrices
BFS
DFS
Spiral Matrix
Minesweeper
Rotting Oranges