The output for 5 came as 4 in terminal.
But it should be 3 right? as
5->4 n-1
4->2 n/2
2->1 n/2
Output for n=5 in bottom up
So then is the code wrong?
yes if you are adding input correctly, please share the code. I will check the error and correct it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.