Skip to content

Commit 3a68a0b

Browse files
committed
Alocate 16 in part 1 for alignment
1 parent 5ca6f8d commit 3a68a0b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/day23.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const MAX_C: usize = 13;
1515
pub fn part1(s: &str) -> u64 {
1616
let s = s.as_bytes();
1717

18-
let mut connections = [const { heapless::Vec::<u16, MAX_C>::new() }; MAX];
18+
let mut connections = [const { heapless::Vec::<u16, 16>::new() }; MAX];
1919
unsafe {
2020
let mut i = 0;
2121
while i < s.len() {
@@ -185,7 +185,6 @@ unsafe fn expand_first(
185185
}
186186
}
187187

188-
// Using this algorithm: https://web.archive.org/web/20160911054636/http://www.dcs.gla.ac.uk/~pat/jchoco/clique/indSetMachrahanish/papers/tomita2003.pdf
189188
unsafe fn expand(
190189
mut r: &mut [(u16, u16)],
191190
g: &BitArray<[u64; BAL]>,

0 commit comments

Comments
 (0)