Given a height h, count and return the maximum number of balanced binary trees possible with height h. A balanced binary tree is one in which for every node, the difference between heights of left and right subtree is not more than 1.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an integer height h.
Count the maximum number of balanced binary trees possible with height h.
1 <= T <= 100
1 <= h <= 1000
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.