param left param right param cmp returns export function lowerBound ( left , right , cmp ) { let i = left ; for ( let j = right ; i < j ; ) { const k = ( i + j ) >>> 1 ; if ( cmp ( k ) < 0 ) i = k + 1 ; else j = k ; } return i ; } param left param right param cmp returns export function lowerBoundBigInt ( left , right , cmp ) { let i = left ; for ( let j = right ; i < j ; ) { const k = ( i + j ) >> 1n ; if ( cmp ( k ) < 0 ) i = k + 1n ; else j = k ; } return i ; } export default lowerBound ;