⚠️ SPOILER ALERT ⚠️ This is a post with my solutions and learning from the puzzle. Don’t continue reading if you haven’t tried the puzzle on your own yet.
If you want to do the puzzle, visit adventofcode.com/2020/day/9.
My programming language of choice is python and all examples below are in python.
Key learning Window sliding This puzzle teaches us to slide through an list of values using a window.
⚠️ SPOILER ALERT ⚠️ This is a post with my solutions and learning from the puzzle. Don’t continue reading if you haven’t tried the puzzle on your own yet.
If you want to do the puzzle, visit adventofcode.com/2020/day/8.
My programming language of choice is python and all examples below are in python.
Key learning Simple compiler This puzzle is a really simple compiler where we execute one of three instructions and only keep track of one value in memory.
⚠️ SPOILER ALERT ⚠️ This is a post with my solutions and learning from the puzzle. Don’t continue reading if you haven’t tried the puzzle on your own yet.
If you want to do the puzzle, visit adventofcode.com/2020/day/7.
My programming language of choice is python and all examples below are in python.
Key learning Depth first search Possibly on part 1: Breadth first search This puzzle can be viewed as a “graph” problem with nodes and edges.
⚠️ SPOILER ALERT ⚠️ This is a post with my solutions and learning from the puzzle. Don’t continue reading if you haven’t tried the puzzle on your own yet.
If you want to do the puzzle, visit adventofcode.com/2020/day/6.
My programming language of choice is python and all examples below are in python.
Key learning Sets and dictionaries This puzzle teaches us how to counting unique elements in lists.
⚠️ SPOILER ALERT ⚠️ This is a post with my solutions and learning from the puzzle. Don’t continue reading if you haven’t tried the puzzle on your own yet.
If you want to do the puzzle, visit adventofcode.com/2020/day/6.
AWK AWK is an useful tool in the command-line when processing text-files. It has it’s own “programming language” which makes it quite powerful.
Prerequisite understandings Built-in variables: There are built-in variables in AWK.
SPOILER ALERT This is a post with my solutions and learnings from the puzzle. Don’t continue reading if you haven’t tried the puzzle on your own yet.
If you want to do the puzzle, visit adventofcode.com/2020/day/5.
My programming language of choice is python and all examples below are in python.
Key learnings Binary numbers This puzzle makes play with binaries. Though not explicitly, but knowing of binaries will help out with this puzzle.