Build the Subsequences

A subsequence is obtained by deleting zero or more characters from a string while keeping the original order of the remaining characters.

Given a string s of distinct lowercase English letters, gen...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: