Skip to content

Commit

Permalink
chore(18/2024): add upper limit in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
manhunto committed Dec 20, 2024
1 parent f5c133c commit 9f20ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
| [Day 15: Warehouse Woes](src/solutions/year2024/day15.rs) | ⭐⭐ | 7.226 | 9.084 |
| [Day 16: Reindeer Maze](src/solutions/year2024/day16.rs) || 6.478 | - |
| [Day 17: Chronospatial Computer](src/solutions/year2024/day17.rs) | - | - | - |
| [Day 18: RAM Run](src/solutions/year2024/day18.rs) | ⭐⭐ | 2.487 | 431.665 |
| [Day 18: RAM Run](src/solutions/year2024/day18.rs) | ⭐⭐ | 2.487 | 431.665a |
| [Day 19: Linen Layout](src/solutions/year2024/day19.rs) | ⭐⭐ | 2.923 | 22.751 |

# 2023
Expand Down
2 changes: 1 addition & 1 deletion src/solutions/year2024/day18.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Solution for Day18 {
.collect();

#[allow(clippy::needless_range_loop)]
for i in self.memory_size.. {
for i in self.memory_size..byte_positions.len() {
let current = byte_positions[i];
skipped.insert(current);

Expand Down

0 comments on commit 9f20ee9

Please sign in to comment.