Given an array of strings patterns and a string word, return the number of strings in patterns that exist as a substring within word.
A substring is a contiguous sequence of characters within a string.
Constraints:
patterns.length
patterns[i].length
word.length
patterns[i] and word consist of lowercase English letters.
Given an array of strings patterns and a string word, return the number of strings in patterns that exist as a substring within word.
A substring is a contiguous sequence of characters within a string.
Constraints:
patterns.length
patterns[i].length
word.length
patterns[i] and word consist of lowercase English letters.