Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- {
- //something for permutation
- }while(next_permutation(arr,arr+5));//arr is an array and 5 is length for the permutation to be performed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement