Black Shape Visualizer

This visualization will help you count number of element group in a grid.

Relevant questions:

Black Shape on InterviewBit

Number of Islands on LeetCode