Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.44 KB

File metadata and controls

13 lines (8 loc) · 1.44 KB

AllCombinations medium

by 蛭子屋双六 @sugoroku-y

Take the Challenge    日本語

Implement type AllCombinations<S> that return all combinations of strings which use characters from S at most once.

For example:

type AllCombinations_ABC = AllCombinations<'ABC'>;
// should be '' | 'A' | 'B' | 'C' | 'AB' | 'AC' | 'BA' | 'BC' | 'CA' | 'CB' | 'ABC' | 'ACB' | 'BAC' | 'BCA' | 'CAB' | 'CBA'

Back Share your Solutions Check out Solutions