项目作者: jamieshark

项目描述 :
Advent of Code 2020
高级语言: JavaScript
项目地址: git://github.com/jamieshark/advent-of-code-2020.git
创建时间: 2020-12-02T17:52:29Z
项目社区:https://github.com/jamieshark/advent-of-code-2020

开源协议:MIT License

下载


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

  1. day-01
  2. ------
  3. Part 1
  4. Solution: 713184
  5. Time: 0.532ms
  6. Part 2
  7. Solution: 261244452
  8. Time: 3.954ms
  9. day-02
  10. ------
  11. Part 1
  12. Solution: 500
  13. Time: 1.599ms
  14. Part 2
  15. Solution: 313
  16. Time: 1.287ms
  17. day-03
  18. ------
  19. Part 1
  20. Solution: 268
  21. Time: 0.07ms
  22. Part 2
  23. Solution: 3093068400
  24. Time: 0.217ms
  25. day-04
  26. ------
  27. Part 1
  28. Solution: 256
  29. Time: 4.008ms
  30. Part 2
  31. Solution: 198
  32. Time: 5.824ms
  33. day-05
  34. ------
  35. Part 1
  36. Solution: 922
  37. Time: 1.488ms
  38. Part 2
  39. Solution: 747
  40. Time: 1.343ms
  41. day-06
  42. ------
  43. Part 1
  44. Solution: 6310
  45. Time: 1.905ms
  46. Part 2
  47. Solution: 3193
  48. 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