Generate an array consisting of elements of the current column
let temp = [ N ] ; for ( let j = 0 ; j < N ; j ++ ) { temp [ j ] = arr [ j ] [ i ] ; } if ( ! checkBitonic ( temp , N ) ) { document . write ( " " ) ; return ; } } document . write ( " " ) ; }