You are viewing a single comment's thread. Return to all comments →
long andProduct(long a, long b) { if ((b-a) >> 1) return a & (a+1); return a; }
Can someone tell me why am I failing the hidden testcases?
AND Product
You are viewing a single comment's thread. Return to all comments →
Can someone tell me why am I failing the hidden testcases?