This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
Used recursive method to move n-1 disks to auxiliary rod, then nth disk to target rod and then the move n-1 disks from auxiliary rod to target rod.
Screenshots(Attach 2 screenshots of your own input and output) -
n = 3
n = 4
Checklist:
[x] I have mentioned the question as comment in my solution file.
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code.
[x] My code gives the correct output.
[x] I confirm that I have not copied the code from anywhere. In case its found that I have copied even after successful merge then I can be banned from the repository and hacktoberfest.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.
Issue Id you have worked upon -
121
Briefly explain your program logic -
Used recursive method to move n-1 disks to auxiliary rod, then nth disk to target rod and then the move n-1 disks from auxiliary rod to target rod.
Screenshots(Attach 2 screenshots of your own input and output) -
n = 3
n = 4
Checklist:
[x] I have mentioned the question as comment in my solution file.
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code.
[x] My code gives the correct output.
[x] I confirm that I have not copied the code from anywhere. In case its found that I have copied even after successful merge then I can be banned from the repository and hacktoberfest.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.