- 博客(5)
- 问答 (2)
- 收藏
- 关注
原创 lower_bound( ) 与 upper_bound( ) 二分查找函数
感谢优快云博主「brandong」的原创文章https://blog.youkuaiyun.com/qq_40160605/article/details/80150252对我的这篇文章有十分重要的帮助————————优美的分割线————————lower_bound( )和upper_bound( )都是利用封装的二分查找的方法在一个排好序的数组中进行查找的。lower_bound (begin,end,num)是将一个排好序的[begin,end)区间中通过二分查找第一个大于等于num的数字,
2021-08-13 21:57:48
688
2
原创 白菜君的三角形
#include<bits/stdc++.h>#include<iostream>#include<cstdio>#include<cmath>#include<string>#include<cstdlib>#include<cstring>#include<algorithm>#include<vector>#include<stack>#include&l...
2021-08-13 16:44:50
145
原创 数字三角形
#include<bits/stdc++.h>#include<iostream>#include<cstdio>#include<cmath>#include<string>#include<cstdlib>#include<cstring>#include<algorithm>#include<vector>#include<stack>#include<q.
2021-08-13 15:48:18
124
原创 next_permutation 与 prev_permutation全排列算法函数
next_permutation 、prev_permutation 函数next_permutation、prev_permutation是STL提供的计算排列组合关系的算法。next_permutation(first,last)是将序列中[first,last)区间按照全排列的思想,根据字典序递增排列,得到当前序列的下一个排列组合序列的算法。若没有下一个排列组合序列,则返回false,否则返回true。prev_permutation(first,last)是将...
2021-08-13 12:01:49
287
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人