From: Brendan Hansen Date: Thu, 16 Dec 2021 01:26:26 +0000 (-0600) Subject: cleaned solution X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=29275e52307ef664e25caf5cde91cc49ac854f70;p=onyx.git cleaned solution --- 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);