parameters: (self, nums)
return_statement: return result
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 rearrangeArray(self, nums):
          """
          :type nums: List[int]
          :rtype: List[int]
          """
          pos, neg = 0, 1
          result = [0]*len(nums)
          for x in nums:
              if x > 0:
                  result[pos] = x
                  pos += 2
              else:
                  result[neg] = x
                  neg += 2
          return result
function_tokens: def rearrangeArray ( self , nums ) : pos , neg = 0 , 1 result = [ 0 ] * len ( nums ) for x in nums : if x > 0 : result [ pos ] = x pos += 2 else : result [ neg ] = x neg += 2 return result