摘要:
Logic is tricky. Redo it. 1 class Solution { 2 public: 3 bool isNumber(string s) { 4 int start = 0, end = s.size()-1; 5 if (end ==... 阅读全文
posted @ 2015-03-25 05:11
keepshuatishuati
阅读(148)
评论(0)
推荐(0)
摘要:
We can use a matrix do the dp. Or we can use an array to record it.But when we encounter 1, we set it to be 0. 1 class Solution { 2 public: 3 int ... 阅读全文
posted @ 2015-03-25 04:54
keepshuatishuati
阅读(135)
评论(0)
推荐(0)
摘要:
1 class Solution { 2 public: 3 int uniquePaths(int m, int n) { 4 vector dp(m, 1); 5 for (int i = 1; i < n; i++) { 6 f... 阅读全文
posted @ 2015-03-25 04:47
keepshuatishuati
阅读(143)
评论(0)
推荐(0)
浙公网安备 33010602011771号