Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create TowerOfHanoi - #3

#3
Open
tusharulhare wants to merge 3 commits into
maxg203:mastermaxg203/Python-for-Beginners:masterfrom
tusharulhare:mastertusharulhare/Python-for-Beginners:masterCopy head branch name to clipboard
Open

Create TowerOfHanoi#3
tusharulhare wants to merge 3 commits into
maxg203:mastermaxg203/Python-for-Beginners:masterfrom
tusharulhare:mastertusharulhare/Python-for-Beginners:masterCopy head branch name to clipboard

Conversation

@tusharulhare

Copy link
Copy Markdown

Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:

  1. Only one disk can be moved at a time.
  2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack i.e. a disk can only be moved if it is the uppermost disk on a stack.
  3. No disk may be placed on top of a smaller disk.

Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:
1) Only one disk can be moved at a time.
2) Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack i.e. a disk can only be moved if it is the uppermost disk on a stack.
3) No disk may be placed on top of a smaller disk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.