1.

Tower of hanoi problem can be solved iteratively.(a) True(b) FalseThis question was addressed to me by my school teacher while I was bunking the class.My question is from Recursion topic in portion Recursion of Data Structures & Algorithms II

Answer»

The correct choice is (a) True

For explanation: Iterative solution to tower of hanoi puzzle also EXISTS. Its APPROACH depends on whether the total numbers of DISKS are even or ODD.



Discussion

No Comment Found

Related InterviewSolutions