You are given an array of strings words and an integer k.
Two words belong to the same prefix connected group if each word has a length of at least k and both share the exact same prefix of length k.
Return the total number of connected groups that contain at least
Constraints:
words.length
words[i].length
k
All strings in words consist of lowercase English letters.
You are given an array of strings words and an integer k.
Two words belong to the same prefix connected group if each word has a length of at least k and both share the exact same prefix of length k.
Return the total number of connected groups that contain at least
Constraints:
words.length
words[i].length
k
All strings in words consist of lowercase English letters.