Rotating the Box
Unlock detailed company stats for this questionUpgrade
Given an m x n matrix boxGrid, where each cell is a stone (#), obstacle (*), or empty (.), rotate the box 90° clockwise. Stones fall due to gravity, stopping when they hit an obstacle, another stone, or the bottom. Return the resulting n x m matrix after the rotation.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course

