05 2014 档案
摘要:1 def reverseString(str,n):2 """Reverse the String"""3 if n<len(str)-1:4 reverseString(str,n+1);5 print ('%c' % (str[n])),
阅读全文
摘要:1 #include 2 //quickSort 3 int partition(int a[],int start,int end) { 4 int node = a[start]; //初始节点 5 while(start= node && end > start) ...
阅读全文
摘要:/× 采用递归算法,每次将第一个位置的字符与后面的字符进行交换,然后得到后面n-1个元素的全排列×/ 1 #include 2 3 //字符串的全排列 4 5 void permutation(char *pStr,char *pbegain) { 6 if(pStr==NULL) r...
阅读全文

浙公网安备 33010602011771号