Given two strings s and t, we can ask how many occurences of s are in t. For example, "bb" occurs in "bbbb" 3 times. But how many occurences of the empty string are in a string? How would we define that?
2026-03-29 15:59:59.1774799999
How many occurences of the empty string in a string?
69 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
My immediate approach would be to reformulate the question to
If $s$ is the empty string, the answer to this is $|t|+1$.