Day 1 — Advent of Code 2022
Let’s solve together the first day of the advent of code 2022 using Javascript.
I had the luck to find out about https://adventofcode.com/, an advent calendar for developers (or coding enthusiasts)!
This website gives you once a day for the next 25 days two puzzles to solve.
Those puzzles are here to improve your problem-solving methods and give you some kind of mental stimulation during those cold days 🥶.
Each puzzle will first be explained and then solved.
I suggest that you take the time to try solving them first and maybe share your method in the comment if you have another one! My methods are obviously not the only ones but the goal is to get the expected result isn’t it?
This article is beginner's friendly and I’ll share as much information as possible including links to documentation.
Puzzle part 1
You will be able to find the first puzzle there.
This puzzle is about elves needing to carry snacks from one place to another. Each snack is a specific amount of calories and each elf carries a different amount of snacks.