parameters: (self, nums)
return_statement: return nums[:i+1]
docstring: :type nums: List[int]
          :rtype: List[int]
docstring_summary: :type nums: List[int]
          :rtype: List[int]
docstring_tokens: : type nums : List [ int ] : rtype : List [ int ]
function: def minSubsequence(self, nums):
          """
          :type nums: List[int]
          :rtype: List[int]
          """
          result, total, curr = [], sum(nums), 0
          nums.sort(reverse=True)
          for i, x in enumerate(nums):
              curr += x
              if curr > total-curr:
                  break
          return nums[:i+1]
function_tokens: def minSubsequence ( self , nums ) : result , total , curr = [ ] , sum ( nums ) , 0 nums . sort ( reverse = True ) for i , x in enumerate ( nums ) : curr += x if curr > total - curr : break return nums [ : i + 1 ]