Domanda di colloquio di TRX

Write a function in java to count the number of unique characters in a string.

Risposta di colloquio

Anonimo

31 ott 2015

used a hashmap to maintain a character count of each character, then returns the characters which were unique.