AlgoMaster Logo

Remove Duplicate Letters

s=bcabc
0 / 18
algomaster.io
Step:Brute force: try one position per distinct letter and keep the smallest spelling