摘要:
1 /** 2 * struct ListNode { 3 * int val; 4 * struct ListNode *next; 5 * ListNode(int x) : 6 * val(x), next(NULL) {... 阅读全文
摘要:
1 class Solution { 2 public: 3 void replaceSpace(char *str,int length) { 4 char *tmp; 5 int count=0; 6 int i; 7 f... 阅读全文
摘要:
1 class Solution { 2 public: 3 bool Find(vector > array,int target) { 4 if(array.empty()) return false; 5 int row=array.size(); 6... 阅读全文
摘要:
也可以采用矩阵的方式。这里可以用循环代替递归。 阅读全文
摘要:
1 class Solution { 2 public: 3 int jumpFloorII(int number) { 4 if(number==1) 5 return 1; 6 if(number==2) 7 ... 阅读全文
摘要:
1 class Solution { 2 public: 3 int jumpFloor(int number) { 4 if(number==1) 5 return 1; 6 if(number==2) 7 ... 阅读全文