You are here:

C++/Towers of Hanoi

Advertisement


Question
hello,

i'm a first years student studying computer system engineering, i've taggled the tower of hanoi problem, although i hate programming, i'm very keen on solving this one, i've already wrote six different algorithms leading me to nothing, so would u please point me in the right direction, it might be good to know that i'm not that bright in recurisve functions although i'm working on it.

thanks

Answer
Recursive functions may be difficult to understand in the beginning, just be patient. What are the six different algorithms you have written? For reference on ToH, you can see http://en.wikipedia.org/wiki/Tower_of_Hanoi and let me know if you are in trouble.

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Amit Kumar

Expertise

I can answer Cplusplus language and library questions, including STL, ACE, Boost. I have a good background in Mathematics.

Experience

Programming in CPP for about 8 years. Industry experience of 4 years.

Education/Credentials
Bachelors and Masters in Computer Science from Indian Institute of Technology Delhi.

©2016 About.com. All rights reserved.