using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
public void rotateMatrix(List<List<int>> a) {
a = matrixTransposeWithoutUsingExtraArray(a);
for (int i = 0; i < a.Count; i++)
public void ReverseArray(List<int> A)
int i = 0, j = A.Count-1;
public static List<List<int>> matrixTransposeWithoutUsingExtraArray(List<List<int>> A)
for (int i = 0; i < rows; i++)
for (int j = i + 1; j < cols; j++)