Algolib
Data structures
Graphs
Geometry
Mathematics
Optimization
Sorting
Strings
Utility
Automaton
KMP
getKmp()
getKmp()
Regex
Trees
Simplex
Two-SAT
JSON
Constants
Shortcuts
Utility
Algolib
Strings
KMP
View page source
KMP
Functions
template
<
class
C
>
std
::
vector
<
int
>
getKmp
(
const
std
::
vector
<
C
>
&
S
)
std
::
vector
<
int
>
getKmp
(
const
std
::
string
&
s
)