Skip to content

Commit e3ae9be

Browse files
committed
Only alocate space for 13 items
1 parent 3415973 commit e3ae9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/day23.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const T_START_REM: u16 = (-(T_START as i16)).rem_euclid(MAX as i16) as u16;
1313
pub fn part1(s: &str) -> u64 {
1414
let s = s.as_bytes();
1515

16-
let mut connections = [const { heapless::Vec::<u16, 16>::new() }; MAX];
16+
let mut connections = [const { heapless::Vec::<u16, 13>::new() }; MAX];
1717
unsafe {
1818
let mut i = 0;
1919
while i < s.len() {

0 commit comments

Comments
 (0)