Counting Words With a Given Prefix
You are given an array of strings words and a string pref.
Return the number of strings in words that contain pref as a prefix.
A prefix of a string s is any leading contiguous substring of s.
LeetCode Problem - 2185
class Solution {
public int p...
perfinsights.hashnode.dev1 min read