Problem 305 · Hard

Number of Islands II

Track island count as cells are added dynamically.

Open the interactive visualisation