Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Permute
#5
What's wrong?

Code:
Copy      Help
function $s n l
int i c
if(n=l)
,out "%s" s
else
,for i n l
,,c=s[i];s[i]=s[n];s[n]=c
,,perm(s,n+1,l)
,,c=s[i];s[i]=s[n];s[n]=c


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)