Max Area of Island
Medium
Grid Search (BFS & DFS)
Print the area (number of cells) of the largest 4-connected island of 1s in the grid, or 0 if there is none.
Constraints
1 <= R, C <= 50
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.