We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 319ace8 commit 32f6c10Copy full SHA for 32f6c10
crates/year2024/src/day11.rs
@@ -97,8 +97,8 @@ impl Builder {
97
let next_idx = self.num_map.len();
98
*self.num_map.entry(n).or_insert_with(|| {
99
self.next.push((0, 0));
100
- self.max_idx[blinks as usize] = self.max_idx[blinks as usize].max(next_idx);
101
if (blinks as usize) < self.max_idx.len() {
+ self.max_idx[blinks as usize] = self.max_idx[blinks as usize].max(next_idx);
102
self.todo.push_back((n, next_idx, blinks));
103
}
104
next_idx
0 commit comments