i did not understah d what is line no. 16 is doing
I did not understah d what is line no. 16 is doing
@Aditya-Kushwaha-914550392281281
it is similar to what explained in the video
i.e. first we are transfering top n-1 disks from src to helper
then the last disk is transferred directly from src to dest.
then the n-1 disks which we had move earlier to helper should be moved in some similar way from helper to dest.
Here we finally want the disks to reach the dest so we can use helper or src as supporting(extra) place where we can put our disks.
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.