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