mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
96c64e5e2c
commit
0737aff7a3
@ -4,7 +4,6 @@
|
|||||||
* finding occurences of a pattern within a piece of text with time and space
|
* finding occurences of a pattern within a piece of text with time and space
|
||||||
* complexity O(n + m)
|
* complexity O(n + m)
|
||||||
* @details
|
* @details
|
||||||
* DESCRIPTION
|
|
||||||
* 1. The Z-function for a string is an array of length n where the
|
* 1. The Z-function for a string is an array of length n where the
|
||||||
* i-th element is equal to the greatest number of characters starting
|
* i-th element is equal to the greatest number of characters starting
|
||||||
* from the position i that coincide with the first characters of s.
|
* from the position i that coincide with the first characters of s.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user