3 ms·
Take all the possible answers with duplicates removed, and return the first one in alphabetical order. input: "bcabc" output: "abc"
by kangnkodos 7y ago
Take all the possible answers with duplicates removed, and return the first one in alphabetical order.
input: "bcabc"
output: "abc"