Repo containing my solutions for Advent of Code 2021 URL.
Trying to do all questions in R, using vectorisation as far as possible.
| Day | Readme | R Solution | Problem summary |
|---|---|---|---|
| 01 | Readme | Solution | which numbers are greater than previous number |
| 02 | Readme | Solution | final position of submarine based on simple logo like directions |
| 03 | Readme | Solution | binary numbers. Form numbers using most common and inverse digits |
| 04 | Readme | Solution | Play bingo. |
| 05 | Readme | Solution | Find intersecting lines |
| 06 | Readme | Solution | Simulate exponential growth of lanternfish |
| 07 | Readme | Solution | Find position that leads to least deviation |
| 08 | Readme | Solution | Digital Display (7 segment search) |
| 09 | Readme | Solution | Lava Tubes (2D grid, find low point + 3 largest basins) |
| 10 | Readme | Solution | Match brackets |
| 11 | Readme | Solution | Game of Life (octopus flashing) |
| 12 | Readme | Solution | Graph traversal. (Big caves, small caves) |
| 13 | Readme | Solution | Paper Folding |
| 14 | Readme | Solution | Polymer Extension (Transition states) |
| 15 | Readme | Solution | Shortest Path on Grid |
| 16 | Readme | Solution | Parse Packets within packets (hex to binary) and then compute |
| 17 | Readme | Solution | Probe with (x,y) velocity. |
| 18 | Readme | Solution | Snail fish addition |
| 19 | Readme | Solution | Scanners and beacons |
| 20 | Readme | Solution | Image enhancement (infinite grid game of life) |
| 21 | Readme | Solution | Throwing dice game with multiple universes [DP] |
| 22 | Readme | Solution | Cubes, cubes and cubes . . . |
| 23 | Readme | Solution | Move 4 different types of cubes to appropriate positions using min cost |
| 24 | Readme | Solution | Reverse engineer ALU code |
| 25 | Readme | Solution | Move > v in grid until stability. |