Tower of hanoi- output is repeating twice

hello @vashishthkuntal.gajjar2019

check now->

a) the params of second recursive call were not correct.
u had to shift disks present on third pole to second pole using first pole.

b) the base case for disk ==1 was not required.
if u wanrt to use then put return statement in that if statement

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.