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