This week, I learnt about recursion which is a great way to prevent duplicated codes. But when I first time saw an example of recursion, I just think that I can understand it, but it seemed that I cannot come up with it. I realized that recursion is actually not so hard to write after I taking the second lecture in the week. The turtle example was very helpful for understanding how recursion works.
没有评论:
发表评论