Leetcode_Python 448 找到全部數組中消失的數字

思考:咱們能夠設置一個計數器計算每一個數出現的次數,最後爲0的就是缺失的。 比較簡單就不一一贅述web class Solution(object): def findDisappearedNumbers(self, nums): """ :type nums: List[int] :rtype: List[int] """
相關文章
相關標籤/搜索