Remove Duplicate Letters
Medium
Stack (Advanced)
Remove duplicate letters so that every letter appears exactly once and the result is the lexicographically smallest possible.
Constraints
1 <= len(s) <= 10^4 Lowercase letters
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.