Skip to content

Commit 9f7c453

Browse files
committed
Start q_max with a size of 12
1 parent d352abc commit 9f7c453

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/day23.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ pub fn part2(s: &str) -> &'static str {
123123

124124
let mut q = heapless::Vec::<u16, MAX_C>::new();
125125
let mut q_max = heapless::Vec::<u16, MAX_C>::new();
126+
#[cfg(not(test))]
127+
{
128+
q_max.resize(12, 0).unwrap();
129+
}
126130

127131
expand(vertecies, &g, &mut q, &mut q_max, &mut cs);
128132

0 commit comments

Comments
 (0)