Given an array words, where each word consists of lowercase English letters, a word word_A is considered a predecessor of word_B if and only if exactly one letter can be inserted anywhere into word_A (without reordering the remaining characters) to produce word_B.
A word chain is a sequence [word_1, word_2, ..., word_k] where
Return the length of the longest possible word chain using words chosen from the given words array.
Constraints:
words.length
words[i].length
words[i] consists only of lowercase English letters
Given an array words, where each word consists of lowercase English letters, a word word_A is considered a predecessor of word_B if and only if exactly one letter can be inserted anywhere into word_A (without reordering the remaining characters) to produce word_B.
A word chain is a sequence [word_1, word_2, ..., word_k] where
Return the length of the longest possible word chain using words chosen from the given words array.
Constraints:
words.length
words[i].length
words[i] consists only of lowercase English letters