You are viewing a single comment's thread. Return to all comments →
In PHP:
print count(array_unique(str_split($s))) . "\n";
I think just about everyone figured out that the question meant to simply ask for the number of unique characters in a given string.
Seems like cookies are disabled on this browser, please enable them to open this website
String Construction
You are viewing a single comment's thread. Return to all comments →
In PHP:
I think just about everyone figured out that the question meant to simply ask for the number of unique characters in a given string.