Commit 463b339
committed
Refactor window shrinking condition in sliding window logic.
Removed redundant check on `left <= right` since the loop condition is already governed by the matching character count. This simplifies the logic without affecting functionality.1 parent 3764345 commit 463b339
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments