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 5d2706a commit 00726c3Copy full SHA for 00726c3
Search/RabinKarp.js
@@ -50,7 +50,7 @@ function rabinKarpSearch(text, pattern) {
50
}
51
52
53
- return indices.length > 0 ? indices : [] // Return an array of indices where the pattern is found or empty array if not found
+ return indices
54
55
56
function hash(str, length) {
0 commit comments