You are viewing a single comment's thread. Return to all 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;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: Bitwise Operators
You are viewing a single comment's thread. Return to all comments →
function getMaxLessThanK(n,k){ let maxValue = 0; for(let i = 1; i
}