diff --git a/.aoc_tiles/tiles/2024/20.png b/.aoc_tiles/tiles/2024/20.png
index 852cf09..5d13312 100644
Binary files a/.aoc_tiles/tiles/2024/20.png and b/.aoc_tiles/tiles/2024/20.png differ
diff --git a/README.md b/README.md
index 63f53a4..422c0bf 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
- 2024 - 42 ⭐ - Rust
+ 2024 - 43 ⭐ - Rust
diff --git a/src/day20.rs b/src/day20.rs
index 514d38d..0927e46 100644
--- a/src/day20.rs
+++ b/src/day20.rs
@@ -1,18 +1,7 @@
-use std::{
- cmp::Reverse,
- collections::{BinaryHeap, VecDeque},
-};
+use std::collections::VecDeque;
use aoc_runner_derive::aoc;
use grid::Grid;
-use rustc_hash::{FxHashMap, FxHashSet};
-
-trait PathTrack {
- const DOES_WORK: bool = true;
- fn new() -> Self;
- fn push(&mut self, pos: (i64, i64));
- fn finalize(&mut self) {}
-}
struct RaceTrack {
map: Grid,
@@ -21,7 +10,7 @@ struct RaceTrack {
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
struct State {
pos: (i64, i64),
- cost: usize,
+ cost: u64,
}
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
@@ -50,15 +39,12 @@ impl RaceTrack {
_ => None,
})
}
- fn path_costs(&self, start: (i64, i64), goal: (i64, i64)) -> (Vec<(i64, i64)>, Grid