Determine if the k-th bit of an integer is set using bitwise operations.
Constraints
Example
>>> is_kth_bit_set(5, 0) True >>> is_kth_bit_set(5, 1) False >>> is_kth_bit_set(5, 2) True >>> is_kth_bit_set(0, 3) False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints