Computer Science EngineeringHardISRO SC (CS)

Tower of Hanoi with 10 disks and three pegs needs the minimum number of moves equal to:

  1. A. 1024
  2. B. 1022
  3. C. 100
  4. D. 1023

Correct answer: D. 1023

2^n - 1 = 1023. Verified by direct computation of the recurrence for this input.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic