parameters: (self, s)
return_statement: return result
docstring: :type s: str
          :rtype: int
docstring_summary: :type s: str
          :rtype: int
docstring_tokens: : type s : str : rtype : int
function: def minDeletions(self, s):
          """
          :type s: str
          :rtype: int
          """
          count = collections.Counter(s)
          result = 0
          lookup = set()
          for c in string.ascii_lowercase:
              for i in reversed(xrange(1, count[c]+1)):
                  if i not in lookup:
                      lookup.add(i)
                      break
                  result += 1
          return result
function_tokens: def minDeletions ( self , s ) : count = collections . Counter ( s ) result = 0 lookup = set ( ) for c in string . ascii_lowercase : for i in reversed ( xrange ( 1 , count [ c ] + 1 ) ) : if i not in lookup : lookup . add ( i ) break result += 1 return result