You are viewing a single comment's thread. Return to all comments →
Java | Easy Solution
int max = 0; int result = 0; for(int i=1; i<N; i++) for(int j=i+1; j<=N; j++){ max = Math.max(max,i&j); if(max<K){ result = max; } } return result;
Seems like cookies are disabled on this browser, please enable them to open this website
Day 29: Bitwise AND
You are viewing a single comment's thread. Return to all comments →
Java | Easy Solution