jdk2pq / adventOfCode2018

๐ŸŽ„Advent of Code 2018 ๐ŸŽ„

Home Page:https://adventofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŽ„ Advent of Code 2018 ๐ŸŽ„

A repo for my solutions to the 2018 edition of Advent of Code. I'm using TypeScript.

What is Advent of Code?

From the website:

"Advent of Code is an Advent calendar of small programming puzzles
for a variety of skill sets and skill levels that can be solved in
any programming language you like. People use them as a speed
contest, interview prep, company training, university coursework,
practice problems, or to challenge each other."

I'm in a friendly competition for this year with some of my co-workers at CCRi.

Solutions by day

Running my solutions

I used ts-node for a REPL and also to execute the TypeScript files, usually console.log()'ing the answers. To do the same, run:

git clone https://github.com/jdk2pq/adventOfCode2018.git
cd adventOfCode2018
npm install #assumes you have a reasonably recent version of node and npm installed
cd {dayYouWantToRun}
ts-node {partYouWantToRun}.ts

Each day also has a README in the directory with commands to run the code.

If my solutions are awful...

...teach me how to do things better! ๐Ÿ˜ƒ I welcome any and all feedback/criticism/critiques/helpful notes/anything really!

The code in this repo is not cleaned up at all, nor attempting to be the most efficient as possible. It's just me trying to quickly code up a solution to get to the correct answer, since the amount of points I get on the leaderboard corresponds with how quickly I answer the problem.

Also, to co-workers, friends, family, recruiters?: this is not an accurate representation of how my code at my job looks. It's actually much better than my code at work. (just kidding ๐Ÿ˜†)

License

MIT License. Copyright (c) 2018 Jake Kenneally.

Really, just feel free to use and remix as you want. I don't need credit, but it'd be awesome if you gave it!

About

๐ŸŽ„Advent of Code 2018 ๐ŸŽ„

https://adventofcode.com

License:MIT License


Languages

Language:TypeScript 100.0%