Advent Of Code 2023 Another year of Rust
Day | Theme | Notes |
---|---|---|
1 | Trebuchet?! | Strings and chars: is_ascii_digit , to_digit , sum |
2 | Cube Conundrum | String splitting, max |
3 | Gear Ratios | 2D arrays, enums, the borrow checker, matches! macro |
4 | Scratchcards | HashSet, split_whitespace |
5 | If You Give A Seed A Fertilizer | HashMap, ranges, chunks, brute forcing |
6 | Wait For It | zip , map , product |
7 | Camel Cards | PartialOrd, Ord, From/Into, putting functions in map , HashMap::entry , Entry::and_modify , Entry::or_insert |
8 | Haunted Wasteland | least common multiple, importing new crates |
9 | Mirage Maintenance | recursion |
10 | Pipe Maze | breadth-first search copied from 2022 Day12, counting crossings, unused floodfill |
11 | Cosmic Expansion | Manhattan distance |
12 | Hot Springs | Dynamic Programming, fold |
13 | Point of Incidence | 2d vec iteration |
14 | Parabolic Reflector Dish | actually finding cycles, labeled break , #[cfg(test)] |
15 | Lens Library | Entry::or_insert_with |
16 | The Floor Will Be Lava | a lot of copy-pasting |