From c9919d6605a5b3f7a4e7a0e126087397901b807b Mon Sep 17 00:00:00 2001 From: RitikaGupta8734 <43800283+RitikaGupta8734@users.noreply.github.com> Date: Thu, 2 Sep 2021 09:41:00 +0530 Subject: [PATCH] Update strings/z_function.cpp Co-authored-by: David Leal --- strings/z_function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/z_function.cpp b/strings/z_function.cpp index 3cc89e520..a3fc0735b 100644 --- a/strings/z_function.cpp +++ b/strings/z_function.cpp @@ -7,7 +7,7 @@ * 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. - * 2. Eg string : ababb then z[2]=2 as s[2]=s[0] and s[3]=s[1] and s[4]!=s[2] + * 2. E.g.: string: ababb then z[2]=2 as s[2]=s[0] and s[3]=s[1] and s[4]!=s[2] * @author [Ritika Gupta](https://github.com/RitikaGupta8734) */