摘要:
#include using namespace std;int sortedInsert(int A[],int lenA,int B[],int lenB){ if(B == NULL) return lenA; int len = lenA + lenB; in... 阅读全文
posted @ 2015-03-12 23:40
在河之博
阅读(437)
评论(0)
推荐(0)
摘要:
partition函数首先需要一个partition函数,partition就是分区的意思,即这个函数的作用是把输入的数组分成左右两部分,返回一个下标;左边的数都比下标对应的数小,右边的数都比下标对应的数大。对于一个算法理解过程最重要,注意细节能够让代码精致。过程理解这个函数有三个重要的点Small... 阅读全文
posted @ 2015-03-12 23:35
在河之博
阅读(1888)
评论(0)
推荐(0)

浙公网安备 33010602011771号