We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 366fbad commit 37ab2c3Copy full SHA for 37ab2c3
docs/solutions/0400-0499/count-the-repetitions.md
@@ -58,7 +58,7 @@
58
5. 当 $str1[i] = str2[j]$ 时,$j$ 指针前进;否则只前进 $i$ 指针。
59
6. 当 $j$ 指针到达 $str2$ 末尾时,说明完成了一次 $str2$ 的匹配,计数器加 $1$,$j$ 重置为 $0$。
60
7. 重复这个过程直到遍历完 $n1$ 个 $str1$,统计总共能匹配多少个完整的 $str2$。
61
-8. 最终答案是 $\lfloor \frac{匹配的 str2 个数}{n2} \rfloor$。
+8. 最终答案是 $\lfloor \frac{\text{匹配的 str2 个数}}{n2} \rfloor$。
62
63
### 思路 1:代码
64
0 commit comments