HackerRank

Over-thinking will not get you there though : )

The trick is QUITE easy: # of unique chars.

def stringConstruction(s):
    return len(set(s))
原文地址:https://www.cnblogs.com/tonix/p/8084300.html