AlgoMaster Logo

Remove Duplicate Letters

s=bcabc
0 / 22
bcabc01234stack = result so farfreqb0c0a0
algomaster.io
Step:Build the smallest string with each letter once, keeping order.