Number of Islands
Problem overview from a real Apple interview:
Count connected components in a 2D grid of 1s and 0s. Use DFS or BFS to traverse horizontally and vertically adjacent land cells for this Apple problem.
Check more interview questions and experiences about Apple
