A number N is given. We need to print its ‘K’th Least Significant Bit.
Input : num = 10, k = 4 Output : 1 Explanation : Binary Representation of 10 is 1010. 4th LSB is 1.
First line consists of T test cases. Single line input, two integers N and K.
Single line output, print the required output.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.