forked from trekhleb/javascript-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 0361fe5
Fix knuthMorrisPratt for empty word request (trekhleb#101)
1 parent 76461f2 commit 0361fe5
File tree
2 files changed
+6
-2
lines changed- src/algorithms/string/knuth-morris-pratt
- __test__
2 files changed
+6
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
5 | + | ||
6 | + | ||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
33 | 37 |
| |
34 | 38 |
| |
35 | 39 |
| |
|
0 commit comments