From 5141a8ad3550ad4fb056a80940e043a80cc11043 Mon Sep 17 00:00:00 2001 From: Shinya Fujino Date: Fri, 3 May 2024 00:55:44 +0900 Subject: [PATCH] 21220: Update multi-line comment to single-line comments (#32989) --- .../README.md | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/questions/21220-medium-permutations-of-tuple/README.md b/questions/21220-medium-permutations-of-tuple/README.md index 71656dd15..ec59cb90f 100644 --- a/questions/21220-medium-permutations-of-tuple/README.md +++ b/questions/21220-medium-permutations-of-tuple/README.md @@ -1,21 +1,19 @@ -

Permutations of Tuple medium #union #tuple #conditional type #recursion

by null @gaac510

Take the Challenge

- +

Permutations of Tuple medium #union #tuple #conditional type #recursion

by null @gaac510

Take the Challenge

+ Given a generic tuple type `T extends unknown[]`, write a type which produces all permutations of `T` as a union. For example: ```ts PermutationsOfTuple<[1, number, unknown]> -/** - * Should return: - * | [1, number, unknown] - * | [1, unknown, number] - * | [number, 1, unknown] - * | [unknown, 1, number] - * | [number, unknown, 1] - * | [unknown, number ,1] - */ -``` - - +// Should return: +// | [1, number, unknown] +// | [1, unknown, number] +// | [number, 1, unknown] +// | [unknown, 1, number] +// | [number, unknown, 1] +// | [unknown, number ,1] +``` + +
Back Share your Solutions Check out Solutions

Related Challenges

296・Permutation 4260・AllCombinations 8767・Combination \ No newline at end of file