Flip the kth bit of an integer to 1 using bitwise operations.
Constraints
Example
```python >>> set_kth_bit(5, 1) # 5 is 101, set bit 1 -> 111 = 7 7 >>> set_kth_bit(0, 3) # 0 -> 1000 = 8 8 >>> set_kth_bit(8, 3) # bit 3 already set -> 8 8 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints