Question DSA-REC-0010
MediumHow many moves does the Tower of Hanoi need for n disks?
- A.
n²
- B.
2ⁿ − 1
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Recursion and Backtracking question
How many moves does the Tower of Hanoi need for n disks?
n²
2ⁿ − 1
Sign up free to see the answer and a step-by-step explanation.
n!
2n