class Solution { public void rotate(int[][] matrix) { for (int col = 0; col < matrix[0].length; col++){ for (int row = 0; row < matrix.length/2; row++){ swap(matrix, row, col, matrix.length-row-1, col); ...
Markdown supported · ⌘↵ to post
No responses yet.