Pythonic
摘要:
arr = [char for char, count in Counter(S).most_common() for _ in range(count)]alen = len(arr)half_len = (alen >> 1) + 1 if alen&1 else (alen >> 1)res 阅读全文
posted @ 2018-05-17 10:48 squirrel2300 阅读(116) 评论(0) 推荐(0) 编辑