You are viewing a single comment's thread. Return to all comments →
Is there wrong with this code?
function getMaxLessThanK(n, k){ let max = 0; for(let i = 1; i <= n; i++){ for(let j = i+1; j <= n; j++){ if(i & j > max && i & j < k){ max = i & j; } } } return max; }
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 →
Is there wrong with this code?