I have a a given
string which may contain any number of alpha-numeric characters, I need to calculate & extract unique characters from this string. That is if the string is "aaabcbbbdaa" I should get 4 (number of unique characters) and "abcd" as those unique characters.
I have a rudimentary code with a single for loop, but I am wondering if there is a better/more efficient way of doing this. Any pointers would be highly appreciated!