All Projects → jcazevedo → advent-of-code-2018

jcazevedo / advent-of-code-2018

Licence: Apache-2.0 license
My solutions for Advent of Code 2018

Programming Languages

java
68154 projects - #9 most used programming language
Pony
23 projects
scala
5932 projects
typescript
32286 projects
perl
6916 projects
swift
15916 projects

This repository has been merged with jcazevedo/advent-of-code-solutions.

Advent of Code 2018

This repository contains my solutions to Advent of Code 2018. After three years solving the problems exclusively in Scala, I decided to solve each day of 2018 in a different programming language.

Rules

Some "rules" I set up for myself before starting solving the problems:

  • The languages to be used in each day are the following, in order: Idris, Prolog, Lua, Rust, C++, Ruby, Octave, Python, Erlang, R, OCaml, Dart, PHP, Elixir, Pony, Scala, Swift, Haskell, Go, Nim, Kotlin, TypeScript, Perl, Java and Clojure.
  • The solutions should read the input from a predefined file (named <day>.input) and write the solution to the standard output.
  • The solutions should take less than a minute to output the correct answer on my machine.
  • Dependencies should be limited to each language's standard library.

Problems

Running

You can run a solution by typing the following, replacing <X> with the day of the desired problem:

$ ./run.sh <X>

You might need to install some dependencies. It should be easy to guess which ones by looking at the run.sh script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].