Starting day 9: use HashMap, not Vec for integers
This commit is contained in:
30
day9/src/main.rs
Normal file
30
day9/src/main.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
use std::error::Error;
|
||||
use std::result;
|
||||
|
||||
mod intcode;
|
||||
|
||||
use intcode::{Intcode, read_intcode};
|
||||
|
||||
const INPUT: &str = "input/input.txt";
|
||||
|
||||
type Result<T> = result::Result<T, Box<dyn Error>>;
|
||||
|
||||
fn solve_part1() -> Result<u32> {
|
||||
Ok(1)
|
||||
}
|
||||
|
||||
fn solve_part2() -> Result<u32> {
|
||||
Ok(1)
|
||||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
println!("Part 1: {}", solve_part1()?);
|
||||
println!("Part 2: {}", solve_part2()?);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
}
|
||||
Reference in New Issue
Block a user