Number of Islands II
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.
Check more interview questions and experiences about Apple
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.
Check more interview questions and experiences about Apple
Please log in to view interview question details