MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / main

Function main

templates/kmp.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68int main()
69{
70 std::string t = "ababcabaa";
71 std::string p = "bca";
72 int pos = kmp_matcher(t, p);
73 printf("pos:%d\n", pos);
74 return 0;
75}

Callers

nothing calls this directly

Calls 1

kmp_matcherFunction · 0.85

Tested by

no test coverage detected