Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

jamieshark/advent-of-code-2020

Repository files navigation

Advent of Code 2020 - My Solutions

Build Status Completion Status GitHub license

After saving Christmas five years in a row, you've decided to take a vacation at a nice resort on a tropical island. Surely, Christmas will go on without you.

The tropical island has its own currency and is entirely cash-only. The gold coins used there have a little picture of a starfish; the locals just call them stars. None of the currency exchanges seem to have heard of them, but somehow, you'll need to find fifty of these coins by the time you arrive so you can pay the deposit on your room.

To save your vacation, you need to get all fifty stars by December 25th.

Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!

Quickstart

Run yarn start [day] to create a new directory for the day. "day" should be formatted like "day-03," "day-10," and so on.

Then run yarn test to run the tests.

Once you've solved the problem, update this README with the problem link and info. You can also paste the results here.

Days

Results

day-01
------
Part 1
  Solution: 713184
  Time: 0.532ms
Part 2
  Solution: 261244452
  Time: 3.954ms

day-02
------
Part 1
  Solution: 500
  Time: 1.599ms
Part 2
  Solution: 313
  Time: 1.287ms

day-03
------
Part 1
  Solution: 268
  Time: 0.07ms
Part 2
  Solution: 3093068400
  Time: 0.217ms

day-04
------
Part 1
  Solution: 256
  Time: 4.008ms
Part 2
  Solution: 198
  Time: 5.824ms

day-05
------
Part 1
  Solution: 922
  Time: 1.488ms
Part 2
  Solution: 747
  Time: 1.343ms

day-06
------
Part 1
  Solution: 6310
  Time: 1.905ms
Part 2
  Solution: 3193
  Time: 9.768ms

Running Tests

Each directory for the day's challenge has a day.test.js file. Run yarn test to run them all.

Previous Years

  • Completion Status

Visit

Releases

No releases published

Packages

No packages published