parameters: (self, nums)
return_statement: return "".join(result)
docstring: :type nums: List[int]
          :rtype: str
docstring_summary: :type nums: List[int]
          :rtype: str
docstring_tokens: : type nums : List [ int ] : rtype : str
function: def optimalDivision(self, nums):
          """
          :type nums: List[int]
          :rtype: str
          """
          if len(nums) == 1:
              return str(nums[0])
          if len(nums) == 2:
              return str(nums[0]) + "/" + str(nums[1])
          result = [str(nums[0]) + "/(" + str(nums[1])]
          for i in xrange(2, len(nums)):
              result += "/" + str(nums[i])
          result += ")"
          return "".join(result)
function_tokens: def optimalDivision ( self , nums ) : if len ( nums ) == 1 : return str ( nums [ 0 ] ) if len ( nums ) == 2 : return str ( nums [ 0 ] ) + "/" + str ( nums [ 1 ] ) result = [ str ( nums [ 0 ] ) + "/(" + str ( nums [ 1 ] ) ] for i in xrange ( 2 , len ( nums ) ) : result += "/" + str ( nums [ i ] ) result += ")" return "" . join ( result )