Skip to content

TheFreck/SoManyPermutations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Wars

https://www.codewars.com/kata/5254ca2719453dcc0b00027d/train/csharp

DESCRIPTION: In this kata, your task is to create all permutations of a non-empty input string and remove duplicates, if present.

Create as many "shufflings" as you can!

Examples:

With input 'a': Your function should return: ['a']

With input 'ab': Your function should return ['ab', 'ba']

With input 'abc': Your function should return ['abc','acb','bac','bca','cab','cba']

With input 'aabb': Your function should return ['aabb', 'abab', 'abba', 'baab', 'baba', 'bbaa'] Note: The order of the permutations doesn't matter.

Good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages