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 hints

Topics

Also asked at 9 companies


More Square Questions

View all Square questions