Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

算法学习(2) | 瑜璟博客 #32

Open
yujingsea opened this issue Jan 24, 2022 · 0 comments
Open

算法学习(2) | 瑜璟博客 #32

yujingsea opened this issue Jan 24, 2022 · 0 comments

Comments

@yujingsea
Copy link
Owner

https://yujingsea.github.io/2022/01/24/29/

STL 初步sort用法sort排序区间为下标范围为[n1,n2)的元素 从小到大排序 1sort(数组名+n1,数组名+n2); 从大到小排序 1sort(数组名+n1,数组名+n2,greater()); 自定义排序规则: sort函数的第三个参数可以是函数对象也可以是函数指针; 1.cmp 如: 1234567 bool cmp (int a,int b)&#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant