parameters: (self)
return_statement: return [0, (self.__h-1)-n]
docstring: :rtype: List[int]
docstring_summary: :rtype: List[int]
docstring_tokens: : rtype : List [ int ]
function: def getPos(self):
          """
          :rtype: List[int]
          """
          n = self.__curr % (2*((self.__w-1)+(self.__h-1)))
          if n < self.__w:
              return [n, 0]
          n -= self.__w-1
          if n < self.__h:
              return [self.__w-1, n]
          n -= self.__h-1
          if n < self.__w:
              return [(self.__w-1)-n, self.__h-1]
          n -= self.__w-1
          return [0, (self.__h-1)-n]
function_tokens: def getPos ( self ) : n = self . __curr % ( 2 * ( ( self . __w - 1 ) + ( self . __h - 1 ) ) ) if n < self . __w : return [ n , 0 ] n -= self . __w - 1 if n < self . __h : return [ self . __w - 1 , n ] n -= self . __h - 1 if n < self . __w : return [ ( self . __w - 1 ) - n , self . __h - 1 ] n -= self . __w - 1 return [ 0 , ( self . __h - 1 ) - n ]