Array
2185. Counting Words With a Given Prefix
Given words and a string pref, count how many words start with pref. A word qualifies if its length is ≥ |pref| and its first |pref| characters equal pref.
Loading…
Given words and a string pref, count how many words start with pref. A word qualifies if its length is ≥ |pref| and its first |pref| characters equal pref.
Loading…