Problem: Rotate Image
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);
...
mackph.hashnode.dev1 min read