5 views
23 Jan 2026
Task: return a & b....
4 views
23 Jan 2026
Task: return true if x is odd using bitwise operator....
6 views
23 Jan 2026
Task: swap a[i] and a[j] using XOR (only if i!=j)....
5 views
23 Jan 2026
Task: set k-th bit (0-indexed) in x and return result....
5 views
23 Jan 2026
Task: clear k-th bit (0-indexed) in x and return result....
7 views
23 Jan 2026
Task: toggle k-th bit and return result....
7 views
23 Jan 2026
Task: return lowest set bit value (like x & -x). If x==0 return 0....
5 views
23 Jan 2026
Task: count set bits using x &= (x-1) loop....
6 views
23 Jan 2026
Task: return true if k-th bit is set....
4 views
23 Jan 2026
Task: create bitmask with bits l..r set (inclusive)....
5 views
23 Jan 2026
Task: reverse bits of int and return result....
5 views
23 Jan 2026
Task: in array where every number appears twice except one, return the single number using XOR....
5 views
23 Jan 2026
Task: every number appears twice except two numbers. Return the two unique numbers....
6 views
23 Jan 2026
Task: given masks a and b, return true if b is subset of a (all bits in b also set in a)....
6 views
23 Jan 2026
Task: return 0 if number of set bits is even, 1 if odd....