type-challenges/questions/08987-medium-subsequence
KenjiMorita 5197a5f7dd
fix: typo (#11691)
Co-authored-by: 森田賢二 <kenjimorita@moritakenjinoMacBook-Pro.local>
2022-06-15 21:45:34 +08:00
..
2022-04-19 13:52:07 +00:00
2022-06-15 21:45:34 +08:00
2022-04-19 13:52:07 +00:00

Subsequence medium #union

by jiangshan @jiangshanmeta

Take the Challenge

Given an array of unique elements, return all possible subsequences.

A subsequence is a sequence that can be derived from an array by deleting some or no elements without changing the order of the remaining elements.

For example:

type A = Subsequence<[1, 2]> // [] | [1] | [2] | [1, 2]

Back Share your Solutions Check out Solutions