comefrom: <doocs>0275.H-Index II_1.py
code: def hIndex( citations: List[int]) -> int:
      n = len(citations)
      left, right = 0, n
      while left < right:
          mid = (left + right + 1) >> 1
          if citations[n - mid] >= mid:
              left = mid
          else:
              right = mid - 1
      return left
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 = len ( var_0 )
      var_6 , var_7 = 0 , var_4
      while var_6 < var_7 :
          var_9 = ( var_6 + var_7 + 1 ) >> 1
          if var_0 [ var_4 - var_9 ] >= var_9 :
              var_6 = var_9
          else :
              var_7 = var_9 - 1
      return var_6
  