parameters: (self, target, n)
return_statement: return result
docstring: :type target: List[int]
          :type n: int
          :rtype: List[str]
docstring_summary: :type target: List[int]
          :type n: int
          :rtype: List[str]
docstring_tokens: : type target : List [ int ] : type n : int : rtype : List [ str ]
function: def buildArray(self, target, n):
          """
          :type target: List[int]
          :type n: int
          :rtype: List[str]
          """
          result, curr = [], 1
          for t in target:
              result.extend(["Push", "Pop"]*(t-curr))
              result.append("Push")
              curr = t+1
          return result
function_tokens: def buildArray ( self , target , n ) : result , curr = [ ] , 1 for t in target : result . extend ( [ "Push" , "Pop" ] * ( t - curr ) ) result . append ( "Push" ) curr = t + 1 return result