随笔分类 -  数据结构--算法模板

C++
摘要:quickSort def partition(arr,low, high): i=(low-1) p=arr[high] for j in range(low, high): if arr[j]<=p: i+=1 arr[i],arr[j]=arr[j],arr[i] arr[i+1],arr[h 阅读全文
posted @ 2021-03-07 14:59 浅忆~ 阅读(108) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-09-27 18:35 浅忆~ 阅读(3) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-08-08 15:28 浅忆~ 阅读(1) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <string.h> 3 #include <algorithm> 4 #include <stdio.h> 5 using namespace std; 6 long long gcd(long long a,long long b 阅读全文
posted @ 2017-08-08 14:26 浅忆~ 阅读(137) 评论(0) 推荐(0)