Implement island counting with BFS and DFS
Company: Bloomberg
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Onsite
Quick Answer: The question evaluates understanding and implementation of graph traversal techniques and connected-component detection on grids, contrasting recursive DFS with an explicit iterative BFS while requiring attention to edge cases such as empty or very large grids and different adjacency definitions.