Commit ff34172
committed
Refactor loop to use enumerate for clarity.
Replaced manual index-based iteration with enumerate in the sliding window implementation. This improves code readability by simplifying access to both index and character in the loop.1 parent 075f66f commit ff34172
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
0 commit comments