Shortest Bridge
CodingOnsiteSoftware EngineerReported Jan, 2026
Company question banks are included with the Insider plan.
You are given a binary grid containing exactly two islands, where 1 is land and 0 is water.
Return the minimum number of 0s that must be flipped to connect the two islands.