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!
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.
- Day 1: Report Repair
- Day 2: Password Philosophy
- Day 3: Toboggan Trajectory
- Day 4: Passport Processing
- Day 5: Binary Boarding
- Day 6: Custom Customs
- Day 7: TBD
- Day 8: TBD
- Day 9: TBD
- Day 10: TBD
- Day 11: TBD
- Day 12: TBD
- Day 13: TBD
- Day 14: TBD
- Day 15: TBD
- Day 16: TBD
- Day 17: TBD
- Day 18: TBD
- Day 19: TBD
- Day 20: TBD
- Day 21: TBD
- Day 22: TBD
- Day 23: TBD
- Day 24: TBD
- Day 25: TBD
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
Each directory for the day's challenge has a day.test.js
file. Run yarn test
to run them all.