Problem 316 · Medium

Remove Duplicate Letters

Remove duplicates keeping lexicographically smallest string.

Open the interactive visualisation