Keep One of Each Letter in the Smallest Subsequence
Company: Amazon
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: Keep One of Each Letter in the Smallest Subsequence. Delete characters from s so every distinct input letter appears exactly once, while the remaining sequence is lexicographically smallest among all such subseque