|All-time Popular Problems|
|Check if subtree|
|Delete Middle of Linked List|
|Given a linked list of 0s, 1s and 2s, sort it.|
|Count nodes of linked list|
|Delete N nodes after M nodes of a linked list|
|Check for Balanced Tree|
|Remove every k'th node|
|k largest elements|
|0 - 1 Knapsack Problem|
|Subarray with given sum|
Given an integer an N, write a program to print the position of first set bit found from right side in the binary representation of the number.
The first line of the input contains an integer T, denoting the number of test cases. Then T test cases follow. The only line of the each test case contains an integer N.
For each test case print in a single line an integer denoting the position of the first set bit found form right side of the binary representation of the number.
Test case 1:
Binary representation of the 18 is 010010, the first set bit from the right side is at position 2.