摘要:
题目来源: 自我感觉难度/真实难度: 题意: 分析: 自己的代码: class Solution: def topKFrequent(self, nums: List[int], k: int) -> List[int]: res=[] num={} for i in nums: if i not i... 阅读全文
摘要:
Runtime: 32 ms, faster than 100.00% of Python3 online submissions for Second Minimum Node In a Binary Tree. 不用维护所有的值,只关心倒数第二小的数字 1.set的初始化不熟练 2.sort函数 阅读全文