code: def majorityElement(self, nums):
      # O(1) space
      ls = len(nums)
      res = []
      check_value = []
      for i in range(ls):
          if nums[i] in check_value:
              continue
          count = 1
          for j in range(i + 1, ls):
              if nums[i] == nums[j]:
                  count += 1
          if count > ls / 3:
              res.append(nums[i])
          check_value.append(nums[i])
      return res
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.majorityElement(nums) and returns: res