static int[][] rotate90(int[][] s) { MatrixRotation.Rotate(s, s.Length - 1); return(s); }
private void DoRotation(int[][] matrix, int k) { PrintMatrix(matrix, string.Format("BEFORE rotate by {0}", k)); MatrixRotation.Rotate(matrix, k); PrintMatrix(matrix, "AFTER"); }