x 48. Rotate Image

In place: transpose + reverse

time: O(n x m)

space: O(1)

time: O(n x m)

space: O(n x m)

Last updated