473 views

1 Answer

1 votes
1 votes

For this question u can use this formula

In S(h) = S(h-1) + S(h-2) + 1,

S(h) is a recursive function/formula

Note that a recursive function must have some base cases, in this case:

S(0) = 1
S(1) = 2

So let's say h = 10, then S(h = 10)

edited by

Related questions

0 votes
0 votes
0 answers
1
himgta asked Sep 11, 2018
266 views
0 votes
0 votes
0 answers
2
Shubham Aggarwal asked Aug 30, 2018
253 views
1) How many stacks are needed to implement a queue .2) How many queue are needed to implement a stack.
0 votes
0 votes
0 answers
3
0 votes
0 votes
0 answers
4