Skip to content

hirayui1/recursive-permutations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Takes at least 1 argument, and uses the first argument string to recursively output every combination of the given string in its order, 'alphabetically' so to say.

As explained above, if you enter the alphabet of any language of input, you will see an alphabetically ordered output of combinations. This is achieved by the program preserving the order of the original string throughout its recursive lifespan.

Took me the entire evening to figure it out, fun problem. Below is an example of inputs and outputs. image

About

output every combination in order

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages