Marks :100
: 4 | : 15
Given a string s that contains characters from a to z returns the smallest subsequence of s that contains all distinct characters of 's' exactly once.
The first line of input contains a single string S ($$$1 \le S \le 1e5$$$)
For each output print the smallest subsequence of s that doesn't contain duplicates
bcabc
abc
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.