plduhoux
2/23/2018 - 1:28 AM

extractMatrixColumn

int[] extractMatrixColumn(int[][] matrix, int column) {
    int[] res = new int[matrix.length];
    for (int i = 0; i < matrix.length; i++) {
        res[i] = matrix[i][column];
    }
    return res;
}