Count islands and implement BFS variant
Company: Bloomberg
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Onsite
Quick Answer: This question evaluates a candidate's ability to apply grid and graph traversal concepts—counting connected components with four-directional connectivity—implement breadth-first search variants, and reason about correctness and linear-time (O(mn)) complexity.