摘要:        
写了两个,一个是直接的递归实现:class Solution {public: void swap(vector &num,int left,int right) { num[left] = num[left]^num[right]; num[right] =...    阅读全文
posted @ 2014-08-07 17:07
A_zhu
阅读(213)
评论(0)
推荐(0)
        
            
        
        
摘要:        
http://www.cnblogs.com/mycapple/archive/2012/08/13/2635853.html标准库全排列next_permutation()在标准库算法中,next_permutation应用在数列操作上比较广泛.这个函数可以计算一组数据的全排列.但是怎么用,原理如...    阅读全文
posted @ 2014-08-07 16:55
A_zhu
阅读(276)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号