Top

/permute

Please Register to submit score.
Average Score  6.5
Scores Submitted  6
Date Added  Apr 08, 2007
Last Updated  Apr 08, 2007

Introduction

/*

lists all possible permutations of a given string

eg. /permute abc yields:

abc
acb
bac
bca
cab
cba

just a fun little snippet that i began shortening and it ended up quite tiny ;) uses indirect recursion

*/

Grab the Code

Comments

  (5)  RSS
RoninWarrior
Comments: 252
 
mIRC Snippet:  /permute
Posted on Apr 9, 2007 3:34 pm
Great job Jaytea
Solo
Comments: 32
 
mIRC Snippet:  /permute
Posted on Apr 11, 2007 4:47 pm
LOL, i tried
/permute 48A6831551E82FC61863EEF9F5B45E3F5F596DE76223B8599CCA331B76EEB28F

It actually crashed my mIRC :D very nice and concise snippet though.
DarkFlaze
Comments: 34
 
mIRC Snippet:  /permute
Posted on Apr 11, 2007 4:54 pm
wth is the point of that?
sinnercreed
Comments: 10
 
mIRC Snippet:  /permute
Posted on Apr 12, 2007 6:12 pm
I like it Jaytea :), I'd try to post something to help make it better but obviously I think you've got it as good as it's going to get :P
Solo
Comments: 32
 
mIRC Snippet:  /permute
Posted on Apr 22, 2007 3:08 pm
Very nice snippet. Just buggy if one has ywo letters in the string. one gets results doubled up.
eg: /permute lol yields
lol
llo
oll
oll
llo
lol

Please Register or Login to start posting comments.
Bottom