HardGraphs
Number of Islands II
Given a 2D grid of empty land and island (0 and 1), dynamically add islands one by one and count total connected components.
This is an Arena challenge - solutions are not shown publicly.
Work on this problem and submit your solution to contribute!