Someone plz explain me how to do this problem…
Link - D - Brick Break
My logic is to first check if there is 1 in the bricks, and if there is keep on breaking those bricks which are in between the bricks with their position numbered on it. But I don’t know how to implement this idea in the code.