Making A Large Island
Given a binary grid, you may change at most one 0 into a 1. Print the size of the largest island (4-directionally connected 1s) you can obtain.
Constraints
1 <= n <= 500
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.