in DS recategorized by
364 views
0 votes
0 votes

I am getting 5 as output, but the answer is 4, please verify

in DS recategorized by
364 views

1 Answer

1 vote
1 vote
I’m also getting answer 5, as in last step of recursion tree lv  = 4 and rv  = 3 , so max of them is lv and the value returned by it is 5.

1 comment

thanks for the confirmation ,test series answer is wrong(I guess).
1
1

Related questions