tamaroth / advent-of-code-2017

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdventOfCode2017 solutions.

Solution table.

Day Name Part 1 Part 2
01 Inverse Captcha - Solution 77µs 49µs
02 Corruption Checksum - Solution 11µs 35µs
03 Spiral Memory - Solution 15µs 17µs
04 High-Entropy Passphrases - Solution 41ms 40ms
05 A Maze of Twisty Trampolines, All Alike - Solution 2ms 263ms
06 Memory Reallocation - Solution 22ms 4µs
07 Recursive Circus - Solution 71ms 136µs
08 I Heard You Like Registers - Solution 866µs 795µs
09 Stream Processing - Solution 372µs 3µs
10 Knot Hash - Solution 217µs 4ms
11 Hex Ed - Solution 38ms 4µs
12 Digital Plumber - Solution 314µs 23ms
13 Packet Scanners - Solution 15µs 341ms
14 Disk Defragmentation - Solution 18ms 15ms
15 Dueling Generators - Solution 186ms 290ms
16 Permutation Promenade - Solution 3ms 387ms
17 Spinlock - Solution 1ms 325ms
18 Duet - Solution 109µs 5ms
19 A Series of Tubes - Solution 60µs 70µs
20 Particle Swarm - Solution 120µs 13ms
21 Fractal Art - Solution 404µs 1825ms

Building

To build the code you will need:

Follow the steps:

  • from within terminal, go to a directory you wish to contain the code. (e.g. cd ~/code)
  • clone the repo: git clone https://github.com/tamaroth/AdventOfCode2017.git
  • enter the repo: cd AdventOfCode2017
  • create build directory: mkdir build
  • enter build directory: cd build
  • run cmake: cmake ..
  • run make: make -j
  • to run the solutions: ./advent/advent
  • to run the tests: ./advent/advent tests

About

License:MIT License


Languages

Language:C++ 90.7%Language:CMake 9.3%