Given a string, find all of its subsequences, which is also known as the power set.
{ "s": "ab" }
[ "", "b", "a", "ab" ]
{ "s": "abc" }
[ "", "c", "b", "bc", "a", "ac", "ab", "abc" ]
{ "s": "a" }
[ "", "a" ]
Sign in to Run Code and Submit