Skip to content
RED SAGSkills
medium10 pts · first answer countsgraphsunion-findgrid-graphs

Island count as land is added

Land cells are added one by one to an empty map, and you must report the island count after each addition. What is the efficient approach?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions