Git Product home page Git Product logo

adventofcode2020's Introduction

AdventOfCode2020

My solutions to the Advent Of Code 2020 puzzles written in Javascript

Requirements

  • Node.js installed

  • As of Day 14, I started to write tests using Mocha. Install it by running:

npm install --global mocha

The tests also use Chai for assertion and Sinon for test-spies

  • A shell of your choice to run the solutions (PowerShell, Bash...)

To Run a Solution (PowerShell)

Example: To run Day 1

cd "Day 1"

node day1.js


Comments

Second half of Day 13 still not good, couldn't find a way to optimize :( (Math: 10 x Me:0)

Finally found a solution to second half Day 13 that is optimized yaaaaay! maybe I will explain it in another file (EDIT: not)

Day 15, looking at it again I regret not writing an algorithm after finding the best solution

Day 17 was interesting, working with 3 dimensions was tough then (boom!!!), second part comes!!

Writing tests is actually fun

adventofcode2020's People

Contributors

jmjardim05 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.