摘要:
这道题其实让我意识到了我的英文水平还有待加强。。。。题目如下:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that t... 阅读全文
摘要:
这道题leetcode上面写着是DP问题,问题是我一开始写了个简单的递归结果直接超时,所以没办法只好拿迭代来做了。题目如下: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct w... 阅读全文