Given an array of strings words and a string pref, return the number of strings in words that contain pref as a prefix.
Note: A prefix of a string is any leading contiguous substring of that string.
Constraints:
words.length
words[i].length, pref.length
words[i] and pref consist of lowercase English letters.
Given an array of strings words and a string pref, return the number of strings in words that contain pref as a prefix.
Note: A prefix of a string is any leading contiguous substring of that string.
Constraints:
words.length
words[i].length, pref.length
words[i] and pref consist of lowercase English letters.