Skip to content

Commit 1f2d82f

Browse files
committed
Genesis! (plus first two day solutions added)
0 parents  commit 1f2d82f

File tree

5 files changed

+1414
-0
lines changed

5 files changed

+1414
-0
lines changed

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Advent of Code 2023
2+
3+
4+
Use [Livebook](https://livebook.dev/) server to run these `.livemd` files.
5+
6+
```console
7+
$ livebook server
8+
[Livebook] Application running at http://localhost:8080/?token=***
9+
```
10+
11+
Open the given link and then `.livemd` file you want.
12+
13+
Input can be found in the similarly-named files.
14+
15+
## Solutions' Notes
16+
17+
[day01.livemd](day01.livemd)
18+
19+
- Part 1: Regex for digits only, take first and last, calculate
20+
- Part 2: Regex for digits and words, convert all to digits, take first and last, calculate
21+
22+
[day02.livemd](day02.livemd)
23+
24+
- Shared: parse into a list of `{game_id, [sets]}` where `sets` is a list of `{n, color}`
25+
- Part 1: check if game is possible – if all sets are possible; set is possible when all the items are possible (less than a max number of cuber of some color)
26+
- Part 2: find a minimal set needed for each game, calculate
27+
28+
[day03.livemd](day03.livemd)
29+
30+
- Shared:
31+
- Part 1:
32+
- Part 2:

0 commit comments

Comments
 (0)