From 29275e52307ef664e25caf5cde91cc49ac854f70 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 15 Dec 2021 19:26:26 -0600 Subject: [PATCH] cleaned solution --- tests/aoc-2021/day15.onyx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/aoc-2021/day15.onyx b/tests/aoc-2021/day15.onyx index 28e81c66..bf1e2ebd 100644 --- a/tests/aoc-2021/day15.onyx +++ b/tests/aoc-2021/day15.onyx @@ -64,8 +64,9 @@ main :: (args) => { array.sort(to_try, (y,x) => x.cost - y.cost); } - printf("Part 2: {}\n", minimum);// - ~~(cells[0] - #char "0")); -/* + printf("Part 2: {}\n", minimum); + +/* NAIVE SOLUTION min_paths := array.make(u32, capacity=cells.count*25); min_paths.count = cells.count * 25; memory.set(min_paths.data, 0, sizeof u32 * min_paths.count * 25); -- 2.25.1