摘要: #include"iostream" #include"stdio.h" #include"stack" using namespace std; struct ListNode { int value; ListNode *pNext; }; ListNode* CreatListNode(int 阅读全文
posted @ 2019-02-15 15:17 Run_For_Love 阅读(246) 评论(0) 推荐(0)
摘要: 1 #include"iostream" 2 #include"stdio.h" 3 using namespace std; 4 5 int* ArrayMerge(int *a,int aLen,int *b,int bLen) 6 { 7 int aIndex=aLen-1,bIndex=bL 阅读全文
posted @ 2019-02-15 11:05 Run_For_Love 阅读(452) 评论(0) 推荐(0)
摘要: 利用STL: 1 #include"iostream" 2 #include"stdio.h" 3 #include"algorithm" 4 using namespace std; 5 6 string ReplaceBlank(string src) 7 { 8 if(src.find(" " 阅读全文
posted @ 2019-02-15 10:14 Run_For_Love 阅读(166) 评论(0) 推荐(0)
摘要: 1 // 面试题4:二维数组中的查找 2 // 题目:在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按 3 // 照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个 4 // 整数,判断数组中是否含有该整数。 5 6 #include <cstdio> 7 8 b 阅读全文
posted @ 2019-02-15 08:26 Run_For_Love 阅读(384) 评论(0) 推荐(0)