
数据结构
考研加油
enginelong
无人驾驶,智能的未来
展开
-
水域大小
非递归方式// 快速排序void QuickSort(int* a, int low, int high){ int i=low, j=high, temp; if(low<high){ temp=a[i]; while(i<j){ while(i<j && a[j]>=temp) --j; a[i]=a[j]; .原创 2021-01-28 16:46:34 · 150 阅读 · 0 评论 -
最长回文子串
给你一个字符串 s,找到 s 中最长的回文子串char * longestPalindrome(char * s){ int start, i, j, count, left, right, maxLength=0, len=strlen(s); if(len==1 || len==0) return s; for(i=0; i<len; i+=count){ left = i-1; right = i+1; count=1; //原创 2021-01-22 19:52:12 · 86 阅读 · 0 评论