This repo contains my solutions for Advent of Code 2021. I only optimize my code in this project when the solution is not coming out fast enough. Code style / readability... out of the window.
Solved with node, extensive use of GitHub Copilot.
Solved with node, partially using GitHub Copilot and some tweaking. Funny detail: the proposed Copilot code referenced Santa: was this the solution to another year's challenge?
GitHub Copilot is still going strong, but I did struggle a bit.
Manipulating multi-dimensional arrays becomes easy when you don't have to think about it.
Copilot had to propose some alternatives for diagonal lines. :-)
Copilot did not give the most optimal solution right away, but it thought along nicely when I did.
This was kinda easy. The logic was simple, just had Copilot work out the code line per line. Not sure why I had to substract 1 from the average positions, but I did some investigating around the average and it turned out to be the correct answer. As the total consumed fuel was lower.
Lots of manual labor today. GitHub Copilot did not like 7-digit numbers...
GitHub Copilot; Grid logic. Easy.
Scoring and filtering did not go well with Copilot. Figuring out the brackets had to be done in multiple steps for Copilot to understand.
Creating a simulation object really helped Copilot to provide the correct autocompletes.