jcazevedo / advent-of-code-2018

My solutions for Advent of Code 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

My solutions for Advent of Code 2018

License:Apache License 2.0


Languages

Language:Java 10.6%Language:Pony 7.9%Language:Scala 6.5%Language:TypeScript 6.5%Language:Perl 5.9%Language:Swift 5.4%Language:Kotlin 5.4%Language:Go 4.7%Language:Lua 4.5%Language:Erlang 3.8%Language:PHP 3.6%Language:Rust 3.6%Language:OCaml 3.0%Language:MATLAB 3.0%Language:Ruby 3.0%Language:Prolog 2.9%Language:Clojure 2.8%Language:Elixir 2.6%Language:Shell 2.4%Language:Dart 2.2%Language:Haskell 2.2%Language:Nim 2.1%Language:Idris 1.8%Language:R 1.5%Language:Python 1.0%Language:C++ 1.0%