标签:解答 diff har nbsp ring class cli turn code
Given a string, find the number of different characters in it.
Example
For s = "cabca", the output should bedifferentSymbolsNaive(s) = 3.
There are 3 different characters a, b and c.
我的解答:
def differentSymbolsNaive(s): return len(set(s))
一模一样
Code Signal_练习题_differentSymbolsNaive
标签:解答 diff har nbsp ring class cli turn code
原文地址:https://www.cnblogs.com/YD2018/p/9490656.html