MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / cmp

Function cmp

Strings/Suffix Array Isomorphic.cpp:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7int str[N];
8int buc[N], r[N], suf[N], X[N], Y[N], high[N];
9bool cmp(int *r, int a, int b, int x) {
10 return (r[a] == r[b] && r[a + x] == r[b + x]);
11}
12void suffix_array_DA(int n, int m) {
13 int *x = X, *y = Y, i, j, k = 0, l;
14 for (i = 0; i <= max(n, m); i++) buc[i] = 0;

Callers 1

suffix_array_DAFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected