Number of Islands II
Problem overview from a real Uber interview:
Uber problem: Use Union-Find to process sequential addLand operations on an m x n water grid. Output an array tracking connected land mass counts.
Check more interview questions and experiences about Uber
