mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 14:05:17 +08:00
Update strings/z_function.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
* finding occurences of a pattern within a piece of text with time and space
|
||||
* complexity O(n + m)
|
||||
* @details
|
||||
* DESCRIPTION
|
||||
* 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
|
||||
* from the position i that coincide with the first characters of s.
|
||||
|
||||
Reference in New Issue
Block a user