238 views

1 Answer

0 votes
0 votes
The Number of time Call () function will be called=17

This is the tree:
Call(7)-->  Call(5),Call(4 )

Call(5)--> Call(3),Call( 2)  Call(4)--> Call(2),Call(1)

Call(3)--> Call(1) ,Call(0)   Call(2)--> Call(0),Call(-1)  Call(2)--> Call(0),Call(-1)  Call(1)--> Call(-1),Call(-2)

Call(1)-->  Call(-1),Call(-2)
edited by

Related questions

0 votes
0 votes
1 answer
2
kallu singh asked Jan 17, 2019
437 views
0 votes
0 votes
0 answers
3