Skip to content

Instantly share code, notes, and snippets.

@tylercritchlow
tylercritchlow / main.rs
Created December 1, 2023 18:54
advent of code 2023 day 1
use std::fs::read_to_string;
use std::collections::HashMap;
// Handle case for "one", "two", etc.
//
fn main() {
let numberConversions = HashMap::from([
// key, value
("one", 1),
[package]
name = "untitled"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
toml = "0.8.8"
serde = "1.0.136"