0
I wrote a program that, given a 2D array representing pixels in a birds eye view image, it returns the number of Objects in the image.
Pixels that are connected in the up, down, left, and right directions are a single object.
Example:
grid = [
[0, 0, 0, 1, 0],
[0, 1, 1, 0, 1],
[0, 0,...