Shortest Bridge (Distance Between Two Islands)

Problem overview from a real Apple interview:

Given a binary matrix up to 100x100, return the minimum 0s to flip to connect the 1s. This Apple grid traversal problem is solved using multi-source BFS.

Check more interview questions and experiences about Apple

Please log in to view interview details