Skip to content

Latest commit

 

History

History

typescript_problem_02_all_permutations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

typescript_problem_all_permutations

requirements

  • Node 18+

Project setup

npm install

Problem

Find all permutations of an input string.

Constraints

Question Answer
Can we assume the string is ASCII? Yes
Can the input have duplicates chars? Yes
Can the output have duplicates chars? Yes - if the input does it must.
Is the output a list of strings? Yes
Can the output have duplicates strings? No
Do we have to output the results in sorted order? No
Can I add additional npm packages? Yes