Remove Duplicates

The problem is so simple. You are given a string and you have to remove all duplicate characters from the string and print the list of unique characters occurring in the input string, along with the number of occurrences each.

This is a companion discussion topic for the original entry at

The input is not clear, will the test case only contains lowercase letter or both???

1 Like