Given an array of strings words, return the longest string in words that can be constructed one character at a time by other strings in words.
If multiple qualifying strings have the same maximum length, return the one that is lexicographically smallest. If no such string exists, return an empty string "".
Constraints:
words.length
words[i].length
words[i] consists of lowercase English letters.
Given an array of strings words, return the longest string in words that can be constructed one character at a time by other strings in words.
If multiple qualifying strings have the same maximum length, return the one that is lexicographically smallest. If no such string exists, return an empty string "".
Constraints:
words.length
words[i].length
words[i] consists of lowercase English letters.