Skip to content

Commit 714903a

Browse files
authored
Update maximum-length-of-repeated-subarray.cpp
1 parent 032bd80 commit 714903a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

C++/maximum-length-of-repeated-subarray.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class Solution2 {
8181
} else {
8282
result[i - (length - 1)] = hash;
8383
hash = (hash - source[i - (length - 1)]) * p_inv % M;
84-
if (hash < 0) hash += M;
8584
}
8685
}
8786
return result;

0 commit comments

Comments
 (0)