parameters: (self, s, d)
return_statement: return ""
docstring: :type s: str
          :type d: List[str]
          :rtype: str
docstring_summary: :type s: str
          :type d: List[str]
          :rtype: str
docstring_tokens: : type s : str : type d : List [ str ] : rtype : str
function: def findLongestWord(self, s, d):
          """
          :type s: str
          :type d: List[str]
          :rtype: str
          """
          d.sort(key = lambda x: (-len(x), x))
          for word in d:
              i = 0
              for c in s:
                  if i < len(word) and word[i] == c:
                      i += 1
              if i == len(word):
                  return word
          return ""
function_tokens: def findLongestWord ( self , s , d ) : d . sort ( key = lambda x : ( - len ( x ) , x ) ) for word in d : i = 0 for c in s : if i < len ( word ) and word [ i ] == c : i += 1 if i == len ( word ) : return word return ""