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