Adding day 4 todo.

This commit is contained in:
calcu1on 2025-03-29 21:23:32 -04:00
parent 4e23bf3084
commit 637d4fbc88
2 changed files with 18 additions and 3 deletions

15
2024/rust/src/day4.rs Normal file
View File

@ -0,0 +1,15 @@
use crate::Solution;
pub fn run_day_4() -> Solution {
// Lets solve day 4 here!
let solution = Solution {
day: 4,
answer_1: "test".to_string(),
answer_2: "another".to_string(),
};
solution
}

View File

@ -5,6 +5,7 @@ use tabled::{Table, Tabled};
pub mod day1;
pub mod day2;
pub mod day3;
pub mod day4;
#[derive(Tabled)]
pub struct Solution {
@ -33,12 +34,11 @@ fn main() {
let day1 = day1::run_day_1();
let day2 = day2::run_day_2();
let day3 = day3::run_day_3();
let day4 = day4::run_day_4();
rows.push(day1);
rows.push(day2);
rows.push(day3);
rows.push(day4);
let table = Table::new(rows);
print!("{}", table);
}