Skip to content

Commit

Permalink
Only alocate space for 13 items
Browse files Browse the repository at this point in the history
  • Loading branch information
EbbDrop committed Dec 24, 2024
1 parent 3415973 commit e3ae9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/day23.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const T_START_REM: u16 = (-(T_START as i16)).rem_euclid(MAX as i16) as u16;
pub fn part1(s: &str) -> u64 {
let s = s.as_bytes();

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

0 comments on commit e3ae9be

Please sign in to comment.