Letter
Teacher, I am now a beginner programming, feel that their programming ability is weaker, if you do an algorithm problem, sometimes take two or three hours, and do not have the answer to the algorithm is good, should be less practice, I should read more people write good algorithm, and then more knock code good, or try to write their own, I can't write it and look at the answer (it feels like a waste of time)
Replies.
We should pay attention to the gradual progress of our study. You have this kind of situation, should be to do the topic, contains too many for you is "new knowledge" content, so that the feeling is too difficult, directly affect the learning experience. There may even be reasons for the non-programming and knowledge part of the algorithm, such as the unfamiliar use of the programming environment, which hinders your learning.
So you can first choose some of the less difficult topics to write a program. From writing simple procedures, to solve simple problems, gradually over to solve complex problems. If you are not sure, you can go to my curriculum resources to find practical projects to do. These topics embody the principle of gradual progress.
Reading code is also a good way to learn. Read the code, write code to combine, you can not write it out, then frankly look at what others write, this is a good way to learn, and finally to be able to write their own code on the line. The beginning of writing, you can pursue the writing, and then gradually pursue well-written, which is also a process.
Write a program step-by