All Tracks Algorithms String Algorithms Basics of String Manipulation Problem

Print first Occurence
/
No tags
Problem
Editorial
Analytics

Given a string containing only lower case letters ,print first occurrence of all the letters present in that order only.

Input :

  • Test cases, t
  • string ,s

Output :

Desired Output

Constraint :

string length <=200

SAMPLE INPUT
2
aasdvasvavda
sajhags
SAMPLE OUTPUT
asdv
sajhg
Time Limit: 1.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB

Best Submission

Similar Problems

Contributors

Initializing Code Editor...
Notifications
View All Notifications

?