Skip to content

Sulles/CodeChallenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeChallenges

Challenge #1

Generate the shortest string with all permutations of a set of numbers

  • For the set of numbers [1, 2], the shortest string that contains all permutations is "121", which has [1, 2] and [2, 1] in a string of length 3. And for the set of numbers [1, 2, 3], the shortest string that contains all permutations is "123121321".

To submit your code for ranking, create a file with a function that has the same name as your file, that accepts a list of integer numbers as an argument, and returns it's best guess at the shortest string that contains all permutations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages