We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aedc710 commit 98851f3Copy full SHA for 98851f3
String/Rabin-Karp Algorithm/code.js
@@ -34,7 +34,7 @@ for (let i = 0; i <= N - M; i++) {
34
*/
35
if (hashPattern === hashText) {
36
let f = 0;
37
- tracer1.select(i, i + M).delay();
+ tracer1.select(i, i + M - 1).delay();
38
tracer2.select(0, M - 1).delay();
39
for (let j = 0; j < M; j++) {
40
tracer1.patch(i + j).delay();
0 commit comments