Leetcode_Python 448 找到全部数组中消失的数字

思考:咱们能够设置一个计数器计算每一个数出现的次数,最后为0的就是缺失的。 比较简单就不一一赘述web class Solution(object): def findDisappearedNumbers(self, nums): """ :type nums: List[int] :rtype: List[int] """
相关文章
相关标签/搜索