I found this sweet code here: http://geeksforgeeks.org/?p=767 the source link: http://mathworld.wolfram.com/Permutation.html
ok how do I even begin to understand these codes? how do I start coding like this? I have encountered many such codes...using dynamic programming, backtracking, branch and bound...and understood squat.
even if u debug them..u cannot understand much..let alone start coding like them.
is some kind of advanced math knowledge is needed..?