Jump to content

Brainteaser


NORA BATTY

Recommended Posts

not worth it brainteaser got dun 4 fone scams

Link to comment
Share on other sites

12345 12354 12435 12453 12534 12543 13245 13254 13425 13452 13524 13542 14235 14253 14325 14352 14523 14532 15234 15243 15324 15342 15423 15432 21345 21354 21435 21453 21534 21543 23145 23154 23415 23451 23514 23541 24135 24153 24315 24351 24513 24531 25134 25143 25314 25341 25413 25431 31245 31254 31425 31452 31524 31542 32145 32154 32415 32451 32514 32541 34125 34152 34215 34251 34512 34521 35124 35142 35214 35241 35412 35421 41235 41253 41325 41352 41523 41532 42135 42153 42315 42351 42513 42531 43125 43152 43215 43251 43512 43521 45123 45132 45213 45231 45312 45321 51234 51243 51324 51342 51423 51432 52134 52143 52314 52341 52413 52431 53124 53142 53214 53241 53412 53421 54123 54132 54213 54231 54312 54321EDIOT: Oh nah, i see what you mean now. nevermind

Link to comment
Share on other sites

12345 12354 12435 12453 12534 12543 13245 13254 13425 13452 13524 13542 14235 14253 14325 14352 14523 14532 15234 15243 15324 15342 15423 15432 21345 21354 21435 21453 21534 21543 23145 23154 23415 23451 23514 23541 24135 24153 24315 24351 24513 24531 25134 25143 25314 25341 25413 25431 31245 31254 31425 31452 31524 31542 32145 32154 32415 32451 32514 32541 34125 34152 34215 34251 34512 34521 35124 35142 35214 35241 35412 35421 41235 41253 41325 41352 41523 41532 42135 42153 42315 42351 42513 42531 43125 43152 43215 43251 43512 43521 45123 45132 45213 45231 45312 45321 51234 51243 51324 51342 51423 51432 52134 52143 52314 52341 52413 52431 53124 53142 53214 53241 53412 53421 54123 54132 54213 54231 54312 54321EDIOT: Oh nah, i see what you mean now. nevermind
lol @ wasting that time
Link to comment
Share on other sites

12345 12354 12435 12453 12534 12543 13245 13254 13425 13452 13524 13542 14235 14253 14325 14352 14523 14532 15234 15243 15324 15342 15423 15432 21345 21354 21435 21453 21534 21543 23145 23154 23415 23451 23514 23541 24135 24153 24315 24351 24513 24531 25134 25143 25314 25341 25413 25431 31245 31254 31425 31452 31524 31542 32145 32154 32415 32451 32514 32541 34125 34152 34215 34251 34512 34521 35124 35142 35214 35241 35412 35421 41235 41253 41325 41352 41523 41532 42135 42153 42315 42351 42513 42531 43125 43152 43215 43251 43512 43521 45123 45132 45213 45231 45312 45321 51234 51243 51324 51342 51423 51432 52134 52143 52314 52341 52413 52431 53124 53142 53214 53241 53412 53421 54123 54132 54213 54231 54312 54321EDIOT: Oh nah, i see what you mean now. nevermind
lol @ wasting that time
I didnt type it out lol its just a perl script
#!/usr/bin/perl -w # permutations# This script prints out all permutations of the strings supplied# as command-line arguments.# The recursive subroutine 'permut' is from the "Perl Cookbook"# and was written by Tom Christiansen.# The algorithm is apparently the usual one used by Lisp programmers.# Note that the Perl Cookbook also supplies an alternative algorithm # that is faster and more flexible, but this one is shorter.# Cameron Hayne ([email protected])  May 2005permut([@ARGV], []);sub permut{	# the two parameters to this function are references to the arrays	# of items to be permuted and the permutations calculated so far	my @items = @{ $_[0] };	my @perms = @{ $_[1] };	unless (@items)	{		# stop recursing when there are no elements in the items		print "@perms\n";	}	else	{		# for all elements in @items, move one from @items to @perms		# and call permut() on the new @items and @perms		my (@newitems, @newperms, $i);		foreach $i (0 .. $#items)		{			@newitems = @items;			@newperms = @perms;			unshift(@newperms, splice(@newitems, $i, 1));			permut([@newitems], [@newperms]);		}	}}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...