next_permutation函数

来源:互联网 发布:手机淘宝如何举报店铺 编辑:程序博客网 时间:2024/06/08 03:04

next_permutation()函数功能是输出所有比当前排列大的排列,顺序是从小到大。

而prev_permutation()函数功能是输出所有比当前排列小的排列,顺序是从大到小。

http://blog.csdn.net/acdreamers/article/details/8544505

http://blog.sina.com.cn/s/blog_9f7ea4390101101u.html