comefrom: <garvit244>153_1.py
code: def findMin( nums):
      if not nums:
          return 0
      
      if len(nums) == 1:
          return nums[0]
      left, right = 0, len(nums)-1
      
      if nums[left] < nums[right]:
          return nums[left]
      while left <= right:
          while nums[left] == nums[right] and left != right:
              left += 1
              
          if nums[left] <= nums[right]:
              return nums[left]
      
          mid = (left + right)/2
          if nums[mid] >= nums[left]:
              left = mid+1
          else:
              right = mid
      return -1
masked: def sample_funcname ( var_0 ) :
      if not var_0 :
          return 0
      if len ( var_0 ) == 1 :
          return var_0 [ 0 ]
      var_4 , var_5 = 0 , len ( var_0 ) - 1
      if var_0 [ var_4 ] < var_0 [ var_5 ] :
          return var_0 [ var_4 ]
      while var_4 <= var_5 :
          while var_0 [ var_4 ] == var_0 [ var_5 ] and var_4 != var_5 :
              var_4 += 1
          if var_0 [ var_4 ] <= var_0 [ var_5 ] :
              return var_0 [ var_4 ]
          var_7 = ( var_4 + var_5 ) / 2
          if var_0 [ var_7 ] >= var_0 [ var_4 ] :
              var_4 = var_7 + 1
          else :
              var_5 = var_7
      return - 1
  