算法
Pacer95
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
快慢指针总结
https://blog.youkuaiyun.com/qq_21815981/article/details/79833976转载 2019-05-19 11:20:36 · 192 阅读 · 0 评论 -
C++ 实现快速排序
#include "stdafx.h"#include <iostream>#include <vector>int Partion(std::vector <int> &a, int low, int high){ int pivotkey = a[low]; while (low < high) { ...原创 2019-05-07 17:52:21 · 223 阅读 · 0 评论 -
C++ 实现冒泡排序(大佬们别耻笑我)
#include "stdafx.h"#include <iostream>#include <vector>using namespace std;void BubbleSort(vector<int> &a, int low, int high){ int c = 0; int count = 0;//记录有无发送交换 ,当其=0...原创 2019-05-07 20:44:18 · 317 阅读 · 2 评论 -
牛客网编程题:查找数组中未出现的最小正整数
#include "stdafx.h"#include <iostream>#include <vector>#include <algorithm>using namespace std;int FindMinPos(vector<int> &A, int n){ vector<int> B(500,...原创 2019-05-12 22:22:37 · 939 阅读 · 0 评论
分享