摘要:
#include #include using namespace std; int* BigNumberMulti(int arr1[], int length1, int arr2[], int length2) { int len = length1 + length2; int* ret = new int[len]; memset(ret, 0, sizeof(int)... 阅读全文
摘要:
题目来自<系统程序员成长计划> 作者:李先静. 逐个字符扫描 根据是否为字母决定当前状态 由单词内状态切换到单词外 计数字符加1 改进版 计数以外还讲单词放入容器 运行结果 1919this s a test Hello World Welcome to the real world it suck 阅读全文
摘要:
#include using namespace std; int arr1[] = { 1,2,3,4,5,6,7,8,9 }; int arr2[] = { 1,1,1,2,3,3,4,6,98 }; int MyBinarySearch(int array[], int begin, int end, const int value) { while (begin array[... 阅读全文
摘要:
#include using namespace std; int arr[] = {1,2,3,4,5,6 }; void swap(int& i, int& j) { int k = i; i = j; j = k; } void HeapAdjust(int array[], int i,const int length) { int lChild = i * 2; i... 阅读全文