摘要:
1 /** 2 * struct ListNode { 3 * int val; 4 * struct ListNode *next; 5 * ListNode(int x) : 6 * val(x), next(NULL) {... 阅读全文
posted @ 2015-08-24 23:57
鸭子船长
阅读(130)
评论(0)
推荐(0)
摘要:
1 class Solution { 2 public: 3 void replaceSpace(char *str,int length) { 4 char *tmp; 5 int count=0; 6 int i; 7 f... 阅读全文
posted @ 2015-08-24 23:43
鸭子船长
阅读(435)
评论(0)
推荐(0)
摘要:
1 class Solution { 2 public: 3 bool Find(vector > array,int target) { 4 if(array.empty()) return false; 5 int row=array.size(); 6... 阅读全文
posted @ 2015-08-24 23:04
鸭子船长
阅读(688)
评论(0)
推荐(0)
摘要:
也可以采用矩阵的方式。这里可以用循环代替递归。 阅读全文
posted @ 2015-08-24 22:09
鸭子船长
阅读(3126)
评论(2)
推荐(0)
摘要:
1 class Solution { 2 public: 3 int jumpFloorII(int number) { 4 if(number==1) 5 return 1; 6 if(number==2) 7 ... 阅读全文
posted @ 2015-08-24 17:31
鸭子船长
阅读(544)
评论(0)
推荐(0)
摘要:
1 class Solution { 2 public: 3 int jumpFloor(int number) { 4 if(number==1) 5 return 1; 6 if(number==2) 7 ... 阅读全文
posted @ 2015-08-24 17:22
鸭子船长
阅读(484)
评论(0)
推荐(0)