Skip to content

Latest commit

 

History

History

challenge-51

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Subsequences of string

This problem was asked by Microsoft.

Description

Given a string, generate all possible subsequences of the string.

Example

Input: "xyz"
Output: ["", "x", "y", "z", "xy", "xz", "yz", "xyz"]