comefrom: <qiyuangong>034_Search_for_a_Range_1.py
code: def searchRange( nums, target):
      length = len(nums)
      if length == 0:
          return [-1, -1]
      min = 0
      max = length - 1
      while min <= max:
          pos = (min + max) / 2
          if nums[pos] > target:
              max = pos - 1
          elif nums[pos] < target:
              min = pos + 1
          else:
              for i in range(min, max + 1):
                  if nums[i] == target:
                      if min < i and nums[min] != nums[i]:
                          min = i
                      max = i
              return [min, max]
      return [-1, -1]
masked: def sample_funcname ( var_0 , var_1 ) :
      var_3 = len ( var_0 )
      if var_3 == 0 :
          return [ - 1 , - 1 ]
      var_6 = 0
      var_7 = var_3 - 1
      while var_6 <= var_7 :
          var_9 = ( var_6 + var_7 ) / 2
          if var_0 [ var_9 ] > var_1 :
              var_7 = var_9 - 1
          elif var_0 [ var_9 ] < var_1 :
              var_6 = var_9 + 1
          else :
              for var_11 in range ( var_6 , var_7 + 1 ) :
                  if var_0 [ var_11 ] == var_1 :
                      if var_6 < var_11 and var_0 [ var_6 ] != var_0 [ var_11 ] :
                          var_6 = var_11
                      var_7 = var_11
              return [ var_6 , var_7 ]
      return [ - 1 , - 1 ]
  