Island Perimeter
A grid contains exactly one island of 4-connected land cells (1) surrounded by water (0). Print the perimeter of the island.
Constraints
1 <= R, C <= 100
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.