Changes

From Genome Analysis Wiki
Jump to navigationJump to search
Line 243: Line 243:     
=== Example code to generare all possible permutations ===
 
=== Example code to generare all possible permutations ===
 +
 +
Note that http://www.cplusplus.com/reference/algorithm/next_permutation/ provides much simpler solution for generating permutation. (Thanks to Matthew Snyder)
 +
 
  // Code to generate permutations from 1..n
 
  // Code to generate permutations from 1..n
 
  // These code was adopted from
 
  // These code was adopted from

Navigation menu