摘要:
###一.编写原因 ####分析算法中,发现之前对于for循环理解很浅薄,只了解到循环体循环的次数。今天回过头,梳理了一下。 ###二.大贴图 ###三.理解 #####1.实践出真知,先上代码 #include<stdio.h> int main() { int count = 0; int co 阅读全文
摘要:
#一.题目 ###1.缩短指针的距离 int maxLengthBetweenEqualCharacters(char * s){ int length=strlen(s); int right=length-1; int temp; int left; while(right>0){ temp=r 阅读全文
摘要:
#一.排序 ###1.快速排序代码 #include<stdio.h> #define Max 100 //储存的最大值 int Sort(int A[],int head,int end) { int Standard = A[head]; //标准值为最左边的数 while (head < en 阅读全文