comefrom: <garvit244>34_1.py
code: def searchRange( nums, target):
      left, right = 0, len(nums)-1
      
      while left <= right:
          mid = (left + right) /  2
          if target > nums[mid]:
              left = mid + 1
          else:
              right = mid
      
      if left == len(nums) or nums[left] != target:
          return [-1, -1]
      
      result = [left]
      left, right = 0, len(nums) -1
      while left <= right:
          mid = (left + right) / 2
          if nums[mid] > target:
              right = mid
          else:
              left = mid + 1
      
      result.append(left + 1)
      return result
masked: def sample_funcname ( var_0 , var_1 ) :
      var_3 , var_6 = 0 , len ( var_0 ) - 1
      while var_3 <= var_6 :
          var_8 = ( var_3 + var_6 ) / 2
          if var_1 > var_0 [ var_8 ] :
              var_3 = var_8 + 1
          else :
              var_6 = var_8
      if var_3 == len ( var_0 ) or var_0 [ var_3 ] != var_1 :
          return [ - 1 , - 1 ]
      var_9 = [ var_3 ]
      var_3 , var_6 = 0 , len ( var_0 ) - 1
      while var_3 <= var_6 :
          var_8 = ( var_3 + var_6 ) / 2
          if var_0 [ var_8 ] > var_1 :
              var_6 = var_8
          else :
              var_3 = var_8 + 1
      var_9.append ( var_3 + 1 )
      return var_9
  