#数组排序后,对元素出现的次数进行统计,只剩下出现次数为1的数
class Solution: def FindNumsAppearOnce(self , array: List[int]) -> List[int]: # write code here array.sort() res = list(filter(lambda i: array.count(i)==1, array)) return res
class Solution: def FindNumsAppearOnce(self , array: List[int]) -> List[int]: # write code here array.sort() res = list(filter(lambda i: array.count(i)==1, array)) return res