Problems
Contests
Account
Problems
> Check Bit K > Editorial
Check Bit K — Solution & Editorial
Back to the Problem
Shift and mask: (N >> K) & 1.
Complexity:
O(1)
×
Refer Job