โ† HashedIn questions
CodingReported in a candidate post, Sep 2019

Count Potholes in 2D Matrix

Filed under HashedIn

The question

Given a 2D matrix of 0s and 1s, count the number of potholes defined as connected neighbouring 1s including diagonals.

No write-up yet. Related questions below have one.

Related HashedIn questions

Collected from public candidate posts and coding forums. Updated Nov 2026.