Uber logoUber
CodingMembers

Shortest Bridge

Members only

Given a binary grid with exactly two islands (1 = land, 0 = water), return the minimum number of 0s that must be flipped to connect the two islands.

SWE
bfs
dfs
grid
medium
Frequency
Single report
Last asked
2026-02-21
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...