1967. Number of Strings That Appear as Substrings in Word
https://leetcode.com/problems/number-of-strings-that-appear-as-substrings-in-word
Description
Given an array of strings patterns
and a string word
, return the number of strings in patterns
that exist as a substring in word
.
A substring is a contiguous sequence of characters within a string.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= patterns.length <= 100
1 <= patterns[i].length <= 100
1 <= word.length <= 100
patterns[i]
andword
consist of lowercase English letters.
ac
Previous1966. Binary Searchable Numbers in an Unsorted ArrayNext1968. Array With Elements Not Equal to Average of Neighbors
Last updated