https://github.com/aprotyas/advent-of-code-2020
Repository of my submissions for advent of code 2020
https://github.com/aprotyas/advent-of-code-2020
advent-of-code cpp
Last synced: over 1 year ago
JSON representation
Repository of my submissions for advent of code 2020
- Host: GitHub
- URL: https://github.com/aprotyas/advent-of-code-2020
- Owner: aprotyas
- Created: 2020-12-02T02:40:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-06T06:38:29.000Z (over 5 years ago)
- Last Synced: 2025-01-31T15:46:22.917Z (over 1 year ago)
- Topics: advent-of-code, cpp
- Language: C++
- Homepage: https://adventofcode.com/
- Size: 76.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of code 2020
My attempt at completing [advent of code 2020](https://adventofcode.com/) in C++!
I will try to be descriptive in my solutions (check `src/day/day.cpp`)
and include space/time complexity information if possible.
## Completed:
+ Day 01 (12/01/2020)
+ Part 1: 2sum problem
+ Part 2: 3sum problem
+ Day 02 (12/02/2020)
+ Part 1: Password validity count
+ Part 2: Password validity count v2
+ Day 03 (12/03/2020)
+ Part 1: Traversing the world on a toboggan
+ Part 2: Changing slopes on a toboggan
+ Day 04 (12/04/2020)
+ Part 1: Passport has enough fields?
+ Part 2: Passport has valid values?
+ Day 05 (12/05/2020)
+ Part 1: Max seat ID
+ Part 2: What's my seat ID?
+ Day 06 (12/06/2020)
+ Part 1: Find all unique answers
+ Part 2: Find all common answers
## How to run
If you're curious and want to run my solutions as is, you'll need CMake
(3.12+) and any popular C++ compiler. In the top-level directory:
```bash
./configure.sh
./build.sh [day]
./ruh.sh day
```
Where `day` is the day number you would like to build/run.