sln_2018_09
Copyright(c) Eric Mertens 2018
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2018/day/9

This solution takes advantage of Data.Sequence providing efficient access to both ends of a sequence. This gives us a amortized constant time rotation operation and allows the solution to run quickly even at the part 2 input size.

Synopsis

Documentation

main :: IO () Source #

Print the answers to day 9

>>> :main
422980
3552041936