generate permutaions

generate all permutations of a string.

there isn’t much problem with recursion as the maximum height of recursion tree is the length of the string. and i tried to benchmark it and waited for 10 min to see that thing to reach 1G(text file size reached 1.2 G.B) then i killed it. 0_0 47682279L, 1287421533C

Screenshot from 2014-07-14 21:26:26Screenshot from 2014-07-14 21:25:22

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s