1967. Number of Strings That Appear as Substrings in Word Updated: 2024-03-12 1 min read Algorithms , LeetCode On This PageLeetCode problem 1967class Solution: def numOfStrings(self, patterns: List[str], word: str) -> int: return sum(p in word for p in patterns)