Compare commits

...

3 Commits

Author SHA1 Message Date
b1a4c31c65 Document run command 2025-05-25 14:33:46 -05:00
0fc1789a90 Day 1 cleanup 2025-05-25 14:30:04 -05:00
a38d6cc7eb Init day 2 2025-05-25 13:09:21 -05:00
3 changed files with 15 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
//https://adventofcode.com/2024/day/1
//
// run command: `cargo run ./input.txt`
use std::collections::HashMap;
use std::env;
use std::error::Error;
@@ -96,11 +100,11 @@ fn main() -> Result<(), Box<dyn Error>> {
}
println!(
"Difference: {}",
"Difference (part 1): {}",
calculate_diff(left_list.clone(), right_list.clone())
);
println!(
"Similarity: {}",
"Similarity (part 2): {}",
calculate_similarity(left_list, right_list)
);

6
day_02/Cargo.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
name = "day_02"
version = "0.1.0"
edition = "2024"
[dependencies]

3
day_02/src/main.rs Normal file
View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}