Daily challenge for 2026-03-01
425. String Array Prefix Match Count
Given an array of strings words and a string s, return the number of strings in words that have s as a prefix. A string a has prefix b if a starts with b.
Example 1:Input: words = ["a", "b", "abc", "d", "ab"], s = "a"Output: 3 (Strings "a", "abc", and "ab" start with "a")
Example 2:Input: words = ["apple", "app", "apricot", "banana"], s = "ap"Output: 3
Run this challenge interactively in Python or JavaScript when the app loads.