Implement a function that clears the lowest set bit of a non-negative integer using bitwise operations.
Constraints
Example
>>> clear_rightmost_set_bit(12) 8 >>> clear_rightmost_set_bit(7) 6 >>> clear_rightmost_set_bit(0) 0 >>> clear_rightmost_set_bit(16) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints