![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 600 阅读 · 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 · 3298 阅读 · 0 评论