Google logoGoogle
Coding·40 minMembers

Rotate Any m×n 2D Matrix

Members only

LeetCode 48 generalized to rectangles. Out-of-place rotation is trivial; in-place rotation for `m ≠ n` is the trap.

SWE
array
grid
medium
Frequency
Single report
Last asked
Stage
onsite-coding

Log in to continue reading the full content