Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【002-week1】本周心得 #61

Open
cwbcheng opened this issue Apr 19, 2019 · 1 comment
Open

【002-week1】本周心得 #61

cwbcheng opened this issue Apr 19, 2019 · 1 comment

Comments

@cwbcheng
Copy link
Contributor

本周做题时,脑子里响起最多的声音竟然是“又忘了判断边界条件”。

在工作中很少写递归的代码。一是因为写起来可能不好写,二是因为别人读起来可能也不好读,三是觉得递归的方法会比较占用栈空间。

但是对于刷题来讲,总不写就会手生。把“下面的递归调用的结果作为此次的一个操作对象”的意识找了好久才找回来。

@hapiman
Copy link
Contributor

hapiman commented Apr 19, 2019

加油,没有边界条件程序怎么退出呢,可以采用数学归纳法即可,不是一般性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants