Search⌘ K
AI Features

Number of Islands II

Number of Islands II starts with an all-water grid and adds land at given positions. Return the island count after each operation, with connections allowed only horizontally or vertically.

Statements

You are given a ...