# Check If Kth Bit Is Set/Unset Using Left Shift

In the kth bit set/unset problem, we need to write a program that checks whether the kth bit of a number is either 1 or 0.

In this two-sum problem, we use various approaches to solve the problem from brute force to an optimized approach. We also discuss the take-offs and talk about complexity analysis.

In the kth bit set/unset problem, we first write the algorithm, then some pseudocode, and then implement the solution.

This problem is similar to the last lesson we discussed. If you need a clue, return to the previous lesson to further your understanding.