Number of Islands II
Problem overview from a real Apple interview:
Process sequential land additions on an m x n water grid to track connected components after each step. Solve this Apple problem using Union-Find.
Check more interview questions and experiences about Apple
