Skip to content

Latest commit

 

History

History

00296-medium-permutation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Permutation medium #union

by Naoto Ikuno @pandanoir

Take the Challenge    简体中文 日本語

Implement permutation type that transforms union types into the array that includes permutations of unions.

type perm = Permutation<'A' | 'B' | 'C'>; // ['A', 'B', 'C'] | ['A', 'C', 'B'] | ['B', 'A', 'C'] | ['B', 'C', 'A'] | ['C', 'A', 'B'] | ['C', 'B', 'A']

Back Share your Solutions Check out Solutions