2020 第 11 周 LeetCode 记录

Yiran at 
1370. Increasing Decreasing String 题目描述很复杂,但其实就是排序和字典,先顺序遍历再反向遍历。(熟练使用 Counter)Python1234567891011121314151617181920212223class Solution(object): def sortString(self, s): """ :type s: str :rtype: str """ set_s = set() for c in s:set_s.add(c) charac……