摘要: 求1~n的全排列,有两种方法,dfs和借助next_permutation()函数,这里我浅谈后者。 next_permutation()原型是bool next_permutation(iterator start,iterator end),在c++库<algorithm>中,既找数组的下一个排 阅读全文
posted @ 2021-08-02 20:49 rainyMo 阅读(210) 评论(0) 推荐(0)