Skip to content

Commit 52b2bee

Browse files
committed
Make buffer bigger
1 parent 5e871af commit 52b2bee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/day18.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const LUT: [bool; 256] = const {
269269
};
270270

271271
fn is_connected(map: &[bool; SIZE1 as usize * SIZE as usize]) -> bool {
272-
let mut to_see = heapless::BinaryHeap::<_, heapless::binary_heap::Min, 128>::new();
272+
let mut to_see = heapless::BinaryHeap::<_, heapless::binary_heap::Min, 1024>::new();
273273
to_see
274274
.push(State {
275275
cost: 0,

tests/test_days.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ benches!(
5050
15 => ("1398947", "1397393"),
5151
16 => ("106512", "563"),
5252
17 => ("3,6,3,7,0,7,0,3,0", "136904920099226"),
53+
18 => ("338", ""),
5354
);

0 commit comments

Comments
 (0)