I have a 3D array, aka an array of 0s and 1s inside an array inside an array.
What I am trying to do is make an algorythm that removes all the 1s in this array in the form of rectangular prisms, returning me an array of prisms removed.
I am slightly confused as to how I should approach this. I was thinking of iterating through the arrays from a chosen point and try to get the size until it reaches a 0, but I always reach some sort of blockade in my thought.
All help is appreciated!