Algorithm · Uber · Medium
Matrix Rotation with Gravity Easy · Topics · Company Tags · Hints You are given an n × n grid of characters. Each cell contains either a lowercase letter, the symbol '#' (which acts as an immovable barrier), or '.' (which represents an empty slot). Your task is to perform two operations on this grid, in order: Rotate the entire grid 90 degrees clockwise. Apply gravity to the rotated grid. Under gravity, every movable character (any lowercase letter) falls straight downward…
Checking your access…