Commit 23331b2
committed
Use
Refactored the character addition loop to use a `for` loop instead of a `while` loop, simplifying the control flow. Removed an unnecessary window expansion step, making the code cleaner and more concise without altering the functionality.for loop instead of while in sliding window logic.1 parent 0987c28 commit 23331b2
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
0 commit comments