Content-Length: 264156 | pFad | http://github.com/cp-algorithms/cp-algorithms/commit/31c757ff7f5d22f103126d5004b9d81d653309bf

61 Display issue (spaces vs tabs) with z_function · cp-algorithms/cp-algorithms@31c757f · GitHub
Skip to content

Commit 31c757f

Browse files
authored
Display issue (spaces vs tabs) with z_function
Both Brave and Edge show spacing issue.
1 parent 76c6606 commit 31c757f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/string/z-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ vector<int> z_function(string s) {
9393
vector<int> z(n);
9494
int l = 0, r = 0;
9595
for(int i = 1; i < n; i++) {
96-
if(i < r) {
96+
if(i < r) {
9797
z[i] = min(r - i, z[i - l]);
98-
}
98+
}
9999
while(s[z[i]] == s[i + z[i]]) {
100100
z[i]++;
101101
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/cp-algorithms/cp-algorithms/commit/31c757ff7f5d22f103126d5004b9d81d653309bf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy