Generate All Subsequences of a String
Given a string, generate all possible subsequences by deleting zero or more characters while keeping the original order of remaining characters. Return the list of all unique subsequences sorted in ascending order.
Asked at:
Expedia
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid June, 2026
Expedia
Senior
subsequence obtained by deleting zero or more characters keeping the order, return the list of string in ascending order
Hello Interview Premium
Your account is free and you can post anonymously if you choose.