*/
Love this site? Hate it? Leave us some comments.
*/

Permutation generator v1.0

*/

Permutation generator v1.0

Submitted By: casualkid
Rating: star (Rate It)

This program gets a string from the input console and displays all possible permutations of the string.

NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot

No Image

Details

File Name:
49959.zip
Product homepage:
Order page:
Languages:
Unknown
Platforms:
Unknown
Release date:
12/7/2006
License:
Unknown
Size:
689 Bytes
Price/Fee (US$):
Unknown
Number of downloads:
531

Comments (2)

I made the same thing in Python :D star   Posted by: richard nichols on Friday, February 09, 2007

perms = lambda a: a[1:] and [c+r for i, c in enumerate(a) for r in perms(a[:i]+a[i+1:])] or a

print perms(raw_input())

I made the same thing in Python :D star   Posted by: richard nichols on Friday, February 09, 2007

perms = lambda a: a[1:] and [c+r for i, c in enumerate(a) for r in perms(a[:i]+a[i+1:])] or a

print perms(raw_input())

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.