AppleCodingMembers
Number of Islands II
Members only
You are given an empty m x n grid initially filled with water. We may perform an addLand operation where positions[i] = [ri, ci] turns the cell (ri, ci) into land.
SWE
medium
union-find
grid
Frequency
Single report
Last asked
2025-12-14
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
