Skip to content

Commit 9f20ee9

Browse files
committed
chore(18/2024): add upper limit in for loop
1 parent f5c133c commit 9f20ee9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
| [Day 15: Warehouse Woes](src/solutions/year2024/day15.rs) | ⭐⭐ | 7.226 | 9.084 |
2929
| [Day 16: Reindeer Maze](src/solutions/year2024/day16.rs) || 6.478 | - |
3030
| [Day 17: Chronospatial Computer](src/solutions/year2024/day17.rs) | - | - | - |
31-
| [Day 18: RAM Run](src/solutions/year2024/day18.rs) | ⭐⭐ | 2.487 | 431.665 |
31+
| [Day 18: RAM Run](src/solutions/year2024/day18.rs) | ⭐⭐ | 2.487 | 431.665a |
3232
| [Day 19: Linen Layout](src/solutions/year2024/day19.rs) | ⭐⭐ | 2.923 | 22.751 |
3333

3434
# 2023

src/solutions/year2024/day18.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl Solution for Day18 {
5252
.collect();
5353

5454
#[allow(clippy::needless_range_loop)]
55-
for i in self.memory_size.. {
55+
for i in self.memory_size..byte_positions.len() {
5656
let current = byte_positions[i];
5757
skipped.insert(current);
5858

0 commit comments

Comments
 (0)