Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Over-thinking will not get you there though : )

The trick is QUITE easy: # of unique chars.

def stringConstruction(s):
    return len(set(s))

 

posted on 2017-12-22 05:30  Tonix  阅读(123)  评论(0编辑  收藏  举报