Advertisement
Maruf_Hasan

next_permutation

Apr 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. do
  2. {
  3. //something for permutation
  4. }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