Day 2 — Advent of Code 2022

It’s time to solve day 2 of the advent of code! Get ready!

Rémy Villulles
7 min readDec 2, 2022
Photo by Oleksandr Pidvalnyi: https://www.pexels.com/photo/silver-candle-holder-on-white-surface-342248/

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.

You can find day one in my previous article

Puzzle part 1

--

--

Rémy Villulles

Fullstack developer, I love learning new technologies and try to stay up to date with the newest features