Pandicon/Advent-of-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸŽ„ Here are my solutions to the Advent of Code challenges! πŸŽ„

Eric Wastl, the creator of the Advent of Code challenge describes it as:

An Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.

Each day consists of two puzzles. To complete the challenge, you must solve all of the puzzles by December 25th.
I'm adding a README.md to each day and each part, which contains the instructions exactly as they were displayed on https://adventofcode.com/ (apart from some styling as that often isn't possible to do in a Markdown file).

In this repository you can find all of my solutions to the Advent of Code challenges. All of them are put into folders as shown below:

+--+ Year
   +--+ Day
      +--+ Part
         +--- README.md
         +--- input-example.txt
         +--- input.txt
         +--- output-example.txt
         +--- output.txt
         +--- solution.js

For each task you can find example input and output files as well as files with the actual input and output. You can also find a file called solution.js which is the solution file.
To run the solution, make sure there is an input.txt file in the folder, navigate to the folder and run node solution.js. The output is then saved into the output.txt file.

YearEvent linkMy solutions
2020adventofcode.com/2020Pandicon/Advent-of-Code/2020
2021adventofcode.com/2021Pandicon/Advent-of-Code/2021

Difficulty explanation: S (Simple), M (Medium), D (Difficult), - (Haven't solved yet, can not judge). The difficulty is always in an A/B format, which expresses the difficulty of part 1 (A) and part 2 (B).

2020
DayDifficultyKeywords
1S/SFinding 2/3 numbers summing to 2020
2S/SString validation, XOR
3S/SCounting
4S/SString validation
5S/SBinary numbers, finding missing number
6S/SFinding elements present in some/all arrays
7-/--
8-/--
9-/--
10-/--
11-/--
12-/--
13-/--
14-/--
15-/--
16-/--
17-/--
18-/--
19-/--
20-/--
21-/--
22-/--
23-/--
24-/--
25-/--
DayDifficultyKeywords
1S/SNumber/Sum comparison
2S/SWorking with coordinates
3S/SFinding most/least common strings
4S/SFinding the best/worst bingo board
5S/SCounting crossings
6S/MLoops/Logical maths
7S/SLogical maths/Loops
8S/DLoops, decoding
9S/MFinding lowest number from neigurs, getting area within borders
10S/SDetecting incorrect sequences, completing sequences
11S/SProcess simulation
12S/SFinding all paths
13S/SFolding paper, finding overlaps
14S/MProcess simulation
15S/SPathfinding
16H/HDecoding
17S/SProcess simulation
18-/--
19-/--
20-/--
21-/--
22-/--
23-/--
24-/--
25-/--