Count Islands in a Grid

Quick Overview

This question evaluates skills in graph traversal and grid connectivity detection, testing competency in reasoning about adjacency, state management, and edge-case handling such as empty grids and the exclusion of diagonal connections.

Count Islands in a Grid

Company: Generalmotors

Role: Machine Learning Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: This question evaluates skills in graph traversal and grid connectivity detection, testing competency in reasoning about adjacency, state management, and edge-case handling such as empty grids and the exclusion of diagonal connections.

Generalmotors logo
Generalmotors
Mar 14, 2026
hardMachine Learning EngineerTechnical ScreenCoding & Algorithms
4
0
Loading...