You are viewing a single comment's thread. Return to all comments →
public static int bitwiseAnd(int N, int K) { return ((K - 1) | K) <= N ? K -1 : K -2; }
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 →