All Projects → glguy → advent2019

glguy / advent2019

Licence: ISC License
Advent of Code 2019 solutions

Programming Languages

haskell
3896 projects

Projects that are alternatives of or similar to advent2019

AdventOfCode-Java
adventOfCode(Language.JAVA);
Stars: ✭ 15 (-65.12%)
Mutual labels:  advent-of-code, advent-of-code-2019
adventofcode
Advent of Code solutions 2015-2021
Stars: ✭ 95 (+120.93%)
Mutual labels:  advent-of-code, advent-of-code-2019
adventofcode
🎄 Advent of Code (2015-2021) in C#
Stars: ✭ 114 (+165.12%)
Mutual labels:  advent-of-code, advent-of-code-2019
coding challenge-24
Advent of Code 2019
Stars: ✭ 50 (+16.28%)
Mutual labels:  advent-of-code, advent-of-code-2019
adventofcode-rb-2019
Solutions to http://adventofcode.com/2019 (complete)
Stars: ✭ 14 (-67.44%)
Mutual labels:  advent-of-code, advent-of-code-2019
adventofcode-solver
🎄 Advent of Code (2015-2021) in JavaScript
Stars: ✭ 16 (-62.79%)
Mutual labels:  advent-of-code, advent-of-code-2019
advent-of-code-2019
Advent of Code 2019 Submissions
Stars: ✭ 27 (-37.21%)
Mutual labels:  advent-of-code, advent-of-code-2019
advent-of-code
My Advent of Code Solutions - 350/350 Stars
Stars: ✭ 30 (-30.23%)
Mutual labels:  advent-of-code, advent-of-code-2019
Advent-of-Code-2019
My solutions for Advent of Code 2019
Stars: ✭ 14 (-67.44%)
Mutual labels:  advent-of-code, advent-of-code-2019
advent-of-code
My solutions for Advent of Code
Stars: ✭ 32 (-25.58%)
Mutual labels:  advent-of-code, advent-of-code-2019
AdventOfCodeBase
Template repository for solving Advent of Code puzzles, which automatically handles input retrieval and output.
Stars: ✭ 33 (-23.26%)
Mutual labels:  advent-of-code
aoc
Advent of Code CLI for reading, running and submitting.
Stars: ✭ 30 (-30.23%)
Mutual labels:  advent-of-code
Scrypto-Advent-Calendar
Scrypto Advent Calendar. Learn the new programming langage to build secure DeFi applications quickly.
Stars: ✭ 22 (-48.84%)
Mutual labels:  advent-of-code
advent-of-code
My solutions to Advent of Code in Clojure
Stars: ✭ 13 (-69.77%)
Mutual labels:  advent-of-code
awesome-adventjs
🎅🎄 A collection of awesome resources related to the adventJS challenge https://adventjs.dev by @midudev
Stars: ✭ 45 (+4.65%)
Mutual labels:  advent-of-code
AoCHelper
Helper .NET library for solving Advent of Code puzzles
Stars: ✭ 22 (-48.84%)
Mutual labels:  advent-of-code
advent-of-code-2018
Learning rust from scratch
Stars: ✭ 19 (-55.81%)
Mutual labels:  advent-of-code
AdventOfCode2021
My solutions to Advent of Code 2021
Stars: ✭ 15 (-65.12%)
Mutual labels:  advent-of-code
AdventOfCode2020
Solving Advent of Code 2020, each day in a different language
Stars: ✭ 22 (-48.84%)
Mutual labels:  advent-of-code
AdventOfCode2021
Solutions to all 25 AoC 2021 problems in Rust 🦀 Less than 100 lines per day and under 1 second total execution time. With competitive global leaderboard placements! 🎄
Stars: ✭ 34 (-20.93%)
Mutual labels:  advent-of-code

Advent of Code 2019

These are my Advent of Code 2019 solutions. I try to focus on making clean and documented Haskell solutions to each puzzle.

We'll be chatting about AoC on IRC all December. You can find AoC discussion on freenode's ##adventofcode and #haskell (webchat)

Building

I recommend installing ghc with ghcup.

$ curl https://get-ghcup.haskell.org -sSf | sh

I'm using GHC 8.8.1 this year

$ ghcup install 8.8.1
$ ghcup set     8.8.1

cabal-install-3 is the best way to get things built

$ cabal update
$ cabal build

Running solutions

All the solutions take an optional command line argument that can be an input file name or - to read the input from stdin.

$ cabal run Day01
...
3188480
4779847

Intcode Interpreter

A few of my solutions rely on a Intcode interpreter library that I have extracted from this repository now that the contest is complete: Intcode.hs

Common libraries used

  • containers - Almost all of the solutions will benefit from having access to Map and Set types from this package.
  • megaparsec - Each problem features a simple text-file format input. Parser combinators make it easy to define the simple parser needed to consume these inputs.
  • doctest - Having checked examples in the documentation makes it easier to understand what code does and easy to add unit tests.
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].