• + 0 comments

    function getMaxLessThanK(n,k){ let maxValue = 0; for(let i = 1; i

            let binaryAndValue = i & j;
            if(binaryAndValue >= k){
                break;
            }
            if(binaryAndValue > maxValue){
                maxValue = binaryAndValue;
            }
    
        }
    }
    return maxValue;
    

    }