Given a string s, return the lexicographically smallest subsequence of s that contains every distinct character of s exactly once.
Note: This question is the same as LeetCode
.
Constraints:
s.length
s consists of lowercase English letters.
Given a string s, return the lexicographically smallest subsequence of s that contains every distinct character of s exactly once.
Note: This question is the same as LeetCode
.
Constraints:
s.length
s consists of lowercase English letters.