본문 바로가기

풀어본 Algorithm 문제 정리

[OJ.leetcode] rotate-image

https://oj.leetcode.com/problems/rotate-image/


You are given an n x n 2D matrix representing an image.

Rotate the image by 90 degrees (clockwise).

Follow up:
Could you do this in-place?