
C++ algorithm
ssswill
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
今日头条2018 AI Camp笔试编程题——最小分割分数
代码: #include <iostream> using namespace std; int max_ = 0; int sum = 0; int sum_temp = 0; int count_ = 0; //n is the length of arr,m is the number of your split. int func(int* arr,int n,int m) ...原创 2019-05-20 16:34:14 · 654 阅读 · 0 评论 -
c++冒泡排序
#include <iostream> using namespace std; int bubblesort1(int *arr,int length) { int temp; for(int i =0;i<length;i++) { for(int j=length-1;j>=i+1;j--)//此处判断条件也可写成j>...原创 2019-05-10 16:40:56 · 3362 阅读 · 0 评论