Now with that said, is your problem related to the Towers of Hanoi problem, or is it related to recursion? ![]() If I get stuck on something not working or something difficult, I'll manually trace it out on paper and draw all kinds of notations that I'm unsure that anyone else can read. I rarely (never?) do that before starting a program, but I do think the program through and try to have an entire idea of how I'm going to get it done before I even start. Perhaps before you go any further with programming stuff like this, you should make sure you understand how the algorithm works.įor example, can you intuitively do the solution "by hand"? If so, can you then express the algorithm in English (or any other natural language) step by step? If so, then work on translating your natural language instructions into C.įor me personally, I never liked pseudo code and I hated listing all of my steps out.
0 Comments
Leave a Reply. |