Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acm-clan/algorithm-stone
/ run2
Function
run2
templates/kmp.py:44–48 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
42
print(p)
43
44
def
run2():
45
p =
"ababbcaababac"
46
print(p)
47
next = compute_prefix_function(p, back=True)
48
print(next)
49
50
# ababbcaababaccc
51
# ababa 内部的状态
Callers
nothing calls this directly
Calls
2
print
Function · 0.85
compute_prefix_function
Function · 0.70
Tested by
no test coverage detected