A utility function to print solution matrix sol [ N , N ]
static void printSolution ( int [ , ] sol ) { for ( int i = 0 ; i < N ; i ++ ) { for ( int j = 0 ; j < N ; j ++ ) { Console . Write ( " ▁ { 0 } ▁ " , sol [ i , j ] ) ; } Console . Write ( " STRNEWLINE " ) ; } }