day_10: init

This commit is contained in:
2024-12-13 09:29:46 +01:00
parent 2312f2a549
commit d25a2cfa99
5 changed files with 18 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ https://adventofcode.com/2024
| 07 | Bridge Repair | :pushpin: | :pushpin: | Equation parsing |
| 08 | Resonant Collinearity | :pushpin: | | Matrix exploration |
| 09 | Disk fragmenter | :pushpin: | | Array indexing |
| 10 | | | | |
| 10 | Hoof It | | | |
| 11 | | | | |
| 12 | | | | |
| 13 | | | | |

View File

@@ -6,7 +6,8 @@
// mod fri_06;
// mod sat_07;
// mod sun_08;
mod mon_09;
// mod mon_09;
mod tue_10;
mod types;
mod utils;
@@ -73,6 +74,10 @@ pub fn historian_hysteria() {
// );
// Monday 09
let disk_checksum = mon_09::disk_fragmenter("./assets/day_9_disk_input");
println!("The disk checksum is {}", disk_checksum);
// let disk_checksum = mon_09::disk_fragmenter("./assets/day_9_disk_input");
// println!("The disk checksum is {}", disk_checksum);
// Tuesday 10
let trailhead_score = tue_10::hoof_it(".");
println!("The trail head sum score is {}", trailhead_score);
}

View File

@@ -0,0 +1,5 @@
use super::*;
pub fn hoof_it(input: &str) -> usize {
0
}

View File

@@ -76,3 +76,6 @@ pub type AntinodeList = HashSet<Antinode>;
pub type Block = Option<usize>;
pub type DiskMap = Vec<Block>;
pub type DiskChecksum = usize;
// Hoof it
pub type TrailScore = usize;

View File

@@ -1,3 +1,4 @@
#![allow(dead_code)]
mod advent_of_code;
fn main() {