Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 1.34 KB

File metadata and controls

14 lines (8 loc) · 1.34 KB

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