Give you the number of nodes of a complete binary tree T. Please calculate the height of T.
10581058
Give you the number of nodes of a complete binary tree T. Please calculate the height of T.
First line is an integer T, which is the number of test cases. (1 <= T <= 1024)
For each test case, there will be an integer in a single line N (1 <= N <= 1024). N is the number of nodes in the Tree.
2
3
5
1
2
Easy problem.