This repository is for the solutions for the advent of code challenge 2021.
Task 1: Question: How many measurements are larger than the previous measurement?
Solution
Answer: `1529` times the measurement increased.Task 2: Question: Consider sums of a three-measurement sliding window. How many sums are larger than the previous sum?
Solution
Answer: `1567` times the measurement increased without the noise.Task page: https://adventofcode.com/2021/day/2
Task 1: Question: "Calculate the horizontal position and depth you would have after following the planned course. What do you get if you multiply your final horizontal position by your final depth?"
Solution
Answer: `1728414`Task 2: Question: "What do you get if you multiply your final horizontal position by your final depth?" (with respecting aim)
Solution
Answer: `1765720035`Task 3: Task: Get the power consumption.