Remove Duplicates From String
Posted: 27 Jul, 2020
You are given a string (STR) of length N, consisting of only the lower case English alphabet.
Your task is to remove all the duplicate occurrences of characters in the string.
If the given string is: abcadeecfb Then after deleting all duplicate occurrences, the string looks like this: abcdef
The only input line contains a string (STR).
Print the string after removing all the duplicate occurrences.
1 <= N <= 4*10^5 Time Limit: 1sec
Longest Common Prefix
Posted: 24 Jul, 2021
Maximum Sum BST
Posted: 27 Jul, 2021
Posted: 29 Jul, 2021
Posted: 21 Aug, 2021
BST from Preorder
Posted: 1 Nov, 2021