Rotating the Box at Square
Medium79.2% acceptance
This problem has 100.0% frequency at Square.
Problem Description
You are given an `m x n` matrix of characters `boxGrid` representing a side-view of a box. Each cell of the box is one of the following: * A stone `'#'` * A stationary obstacle `'*'` * Empty `'.'` The box is rotated **90 degrees clockwise** , causing some of the stones to fall due to gravi...
Read full problem and hintsTopics
Also asked at 9 companies
More Square Questions
Available Captures for RookEasyWord BreakMediumFalling SquaresHardNumber of Black BlocksMediumCount Nice Pairs in an ArrayMedium
View all Square questions