137. 只出现一次的数字 II

class Solution:
    def singleNumber(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        return (3*sum(set(nums)) - sum(nums))//2

相关文章:

  • 2021-11-14
  • 2021-11-27
  • 2021-06-17
  • 2022-12-23
  • 2021-08-15
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2021-05-20
  • 2022-12-23
  • 2022-01-08
  • 2021-12-16
相关资源
相似解决方案