Given a string, find the number of different characters in it.
For s = "cabca", the output should be
differentSymbolsNaive(s) = 3.
There are 3 different characters a, b and c.
-
[time limit] 4000ms (py3)
-
[input] string s
A string of lowercase latin letters.
Guaranteed constraints:
3 ≤ s.length ≤ 15. -
[output] integer