LeetCode 803: Bricks Falling When Hit
Problem Restatement We are given an m x n grid. Each cell is either: Value Meaning 1 Brick 0 Empty space A brick is stable if it is connected to the top row, either directly or through other 4-directionally adjacent stable bricks. We are also given a list of hits. Each hit removes the brick at position (row, col) if a brick exists there. After each hit, some bricks may...