I have a row-based multidimensional array:
/** [row][column]. */ public int[][] tiles;
I would like to transform this array to column-based
If you want to go for in place transpose of a matrix(in which case row count = col count) you can so following in Java
row count = col count
public static void inPlaceTranspose(int [][] matrix){ int rows = matrix.length; int cols = matrix[0].length; for(int i=0;i