16 Commits (main)
 

Author SHA1 Message Date
Peery 177390320f Day 6 (Puzzle 2) - Tuning Trouble
Task changed from detecting a unique sequence of length 4 to a unique sequence of length 14.
Just had to change a single if-check from checking for uniqueness (and potentially returning the position) from 4 to 14.
1 year ago
Peery d93acf1fa6 Day 6 (Puzzle 1) - Tuning Trouble
Successfully finished puzzle 1 in Rust by keeping a queue (VecDeque) of the last 4 characters and a function that checks for duplicate characters on any queue.
Rust is kinda nice. At least helpful errors.
1 year ago
Peery d883950591 Day 5 - Supply Stacks (puzzle 2)
Just changed the instruction execution to run with a temporary crane stack.
First all crates are fetched from the source stack and put onto the crane stack.
Afterwards all crates on the crane stack are put onto the target stack.

Both operations use stacks and therefore result in a same-order movement in the end.
1 year ago
Peery 8783562d39 Day 5 - Supply Stacks (Puzzle 1)
Successfully finished the stack and instruction parsing and execution in Rust.
Took a bit and I've discovered that VecDeque are just more handy than plain Vecs but it works.
1 year ago
Peery 76ae30f975 Day 4 (Puzzle 2) - Camp Cleanup
Adapted the final overlap check to count anything not 0 instead and it succeeded the second puzzle.
1 year ago
Peery 0945923f9f Fixed gitignore to ignore target folders 1 year ago
Peery af54945575 Added target/ folder to gitignore
The target folder is a build folder for rust and therefore not to be tracked by git.
1 year ago
Peery c7ffe2b2d1 Day 4 (Puzzle 1) - Rucksack Reorganization
Decided to use Rust for this and boy did it take hours...
It is a very simplistic program without any fancy whistles. But it runs and succeeded in the puzzle!
1 year ago
Peery 2c44d2b9bb Added vscode folder to gitignore 1 year ago
Peery 13a817e463 Switching to Rust; Removed all Python Code
Wanted to practice Rust skills more, so I shall let it take over this advent of cod
1 year ago
Peery 47c6e0c941 Day 3 (Puzzle 2) - Rucksack Reorganization
Successfully finished the second puzzle.
Took me a bit worrying what "and at most two of the Elves will be carrying any other item type" meant in the task text while my grouping loop was broken and skipping a rucksack every fourth rucksack while doing the group. Yikes.

Caught the error before trying a result though thanks to exceptions when things go wrong!
1 year ago
Peery 34ee2b12a4 Day 3 (Puzzle 1) - Rucksack Reorganization
Successfully finished the first puzzle.
1 year ago
Peery e29575cb35 Day 2 (Puzzle 2) - Rock, Paper, Scissor
Successfully finished the second puzzle. The parsing changed so that the second column is not my answer but the intended result. I just quickly changed the file parser to replace the intended result with the fitting answer so that I need not touch the evaluation function.

Moved the previous parsing to parse_file_v1() for archiving purposes.
1 year ago
Peery a77ad30e10 Day 2 (Puzzle 1) - Rock, Paper, Scissor
Successfully finished the first puzzle in which rock, paper scissor had to be evaluated into points and summed up. I wonder if there is a more elegant way of checking for wins vs losses.
1 year ago
Peery 0a735eb84b Day 1 - Calorie Counting
went a bit overboard because it was fun to give all elves names and a "proper" inventory.
1 year ago
Peery f1e287a3cf Init commit
Adding .gitignore
1 year ago