Number of islands on a spherical map
Filed under Zomato
The question
Given a 2D grid representing a world map of land ('L') and water ('W') where rows and columns wrap around cyclically (spherical world), count the total number of connected islands.
No write-up yet. Related questions below have one.
Related Zomato questions
Collected from public candidate posts and coding forums. Updated Nov 2026.