day_10: init
This commit is contained in:
@@ -12,7 +12,7 @@ https://adventofcode.com/2024
|
|||||||
| 07 | Bridge Repair | :pushpin: | :pushpin: | Equation parsing |
|
| 07 | Bridge Repair | :pushpin: | :pushpin: | Equation parsing |
|
||||||
| 08 | Resonant Collinearity | :pushpin: | | Matrix exploration |
|
| 08 | Resonant Collinearity | :pushpin: | | Matrix exploration |
|
||||||
| 09 | Disk fragmenter | :pushpin: | | Array indexing |
|
| 09 | Disk fragmenter | :pushpin: | | Array indexing |
|
||||||
| 10 | | | | |
|
| 10 | Hoof It | | | |
|
||||||
| 11 | | | | |
|
| 11 | | | | |
|
||||||
| 12 | | | | |
|
| 12 | | | | |
|
||||||
| 13 | | | | |
|
| 13 | | | | |
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
// mod fri_06;
|
// mod fri_06;
|
||||||
// mod sat_07;
|
// mod sat_07;
|
||||||
// mod sun_08;
|
// mod sun_08;
|
||||||
mod mon_09;
|
// mod mon_09;
|
||||||
|
mod tue_10;
|
||||||
mod types;
|
mod types;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
@@ -73,6 +74,10 @@ pub fn historian_hysteria() {
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
// Monday 09
|
// Monday 09
|
||||||
let disk_checksum = mon_09::disk_fragmenter("./assets/day_9_disk_input");
|
// let disk_checksum = mon_09::disk_fragmenter("./assets/day_9_disk_input");
|
||||||
println!("The disk checksum is {}", disk_checksum);
|
// 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);
|
||||||
}
|
}
|
||||||
|
|||||||
5
src/advent_of_code/tue_10.rs
Normal file
5
src/advent_of_code/tue_10.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
use super::*;
|
||||||
|
|
||||||
|
pub fn hoof_it(input: &str) -> usize {
|
||||||
|
0
|
||||||
|
}
|
||||||
@@ -76,3 +76,6 @@ pub type AntinodeList = HashSet<Antinode>;
|
|||||||
pub type Block = Option<usize>;
|
pub type Block = Option<usize>;
|
||||||
pub type DiskMap = Vec<Block>;
|
pub type DiskMap = Vec<Block>;
|
||||||
pub type DiskChecksum = usize;
|
pub type DiskChecksum = usize;
|
||||||
|
|
||||||
|
// Hoof it
|
||||||
|
pub type TrailScore = usize;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#![allow(dead_code)]
|
||||||
mod advent_of_code;
|
mod advent_of_code;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user