CodingReported in a candidate post, Aug 2021
Lexicographically smallest subsequence of exact length
Filed under Dunzo
The question
Given a string of length N of lowercase latin characters, find the lexicographically smallest subsequence of length exactly equal to X.
No write-up yet. Related questions below have one.
Related Dunzo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.