- 博客(2)
- 收藏
- 关注
原创 算法设计与分析 第一次实验 最大公约数的三个解法
Gcd的三个解法 并用计数法1和计时法2测算时间gratest common divisor算法一 连续整数#include<iostream>#include<algorithm>using namespace std;int continuous_integer(int m, int n) { int t = min(m, n); int Max ...
2019-03-05 11:18:20 979
原创 算法设计与分析 第一次作业 数组中相差最小的两个元素(最接近数)的差
数组中相差最小的两个元素(最接近数)的差伪代码与C++描述伪代码描述1 利用快速排序 让数组有序化2 循环遍历 两两相邻的数的差值 不断更新dvalueC++ 描述1.快排的实现void quicksort(int left, int right) { int i, j, t, pivotkey; if (left > right) { return; }...
2019-03-03 11:01:31 10240 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人