Cyient Online Assessment | Number of Islands & Top K Frequent Elements | Off-Campus
Question · Posted Jun 2026
Problem 1 - GIS Spatial Map Boundary Scan Problem Statement You are working on a satellite imagery parsing module for a Geographic Information System (GIS). The system receives a binary matrix spatialMap of size M × N. '1' represents land. '0' represents water. An island is formed by connecting adjacent land cells horizontally or vertically. Diagonal connections do not count. The entire grid is surrounded by water. Return the total number of isolated islands present in the map. Constraints Constraint ...
The full answer & interview discussion are available to premium members.
Log in Create a free account