arrow_back
返回选关
chevron_left
上一关
lock
下一关
Ch.4 · Level 05
串定位 (BF)
朴素模式匹配:枚举起始位置,逐位比较,失配则 i++、j 归零。
S / 主串
arrow_back
返回关卡库
串定位 (BF)
主串 S="ABABCABAB",模式串 P="ABAB"。观察 BF 最坏 O(n×m) 的匹配过程。
1
⌘ + Enter to run
play_arrow
运行代码
guest@aq-shell:~ (bash)
terminal
skip_previous
play_arrow
skip_next
0 / 0
dock_to_left
terminal
1x