ByteDance / TikTokCoding·60 minMembers
Number of Islands and Grid BFS Variants
Members only
Grid traversal in the 'number of islands' family — count connected components, then a follow-up that adds a constraint such as no-modify-in-place, equal-shape detection, water-flow direction, or 2D sc...
SWE
Infra Eng
grid
bfs
dfs
union-find
medium
Frequency
High
Last asked
2026-08-08
Stage
phone-screen · onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
