parameters: (self, citations)
return_statement: return n - left
docstring: :type citations: List[int]
          :rtype: int
docstring_summary: :type citations: List[int]
          :rtype: int
docstring_tokens: : type citations : List [ int ] : rtype : int
function: def hIndex(self, citations):
          """
          :type citations: List[int]
          :rtype: int
          """
          n = len(citations)
          left, right = 0, n - 1
          while left <= right:
              mid = (left + right) / 2
              if citations[mid] >= n - mid:
                  right = mid - 1
              else:
                  left = mid + 1
          return n - left
function_tokens: def hIndex ( self , citations ) : n = len ( citations ) left , right = 0 , n - 1 while left <= right : mid = ( left + right ) / 2 if citations [ mid ] >= n - mid : right = mid - 1 else : left = mid + 1 return n - left