sln_2022_06
Copyright(c) Eric Mertens 2022
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2022/day/6

>>> :main + "mjqjpqmgbljsphdztnvjfqwrcgsmlb\n"
7
19
>>> :main + "bvwbjplbgvbhsrlpgdmjqwftvncz\n"
5
23
>>> :main + "nppdvjthqldpwncqszvftbrmjlhg\n"
6
23
>>> :main + "nznrnfrfntjfmvfwmzdfjlvtqnbhcprsg\n"
10
29
>>> :main + "zcfzfwzzqfrljwzlrfnpqdbhtmscgvjw\n"
11
26
Synopsis

Documentation

main :: IO () Source #

>>> :main
1909
3380

solve :: Ord a => Int -> [a] -> Int Source #

start :: Ord a => Int -> [a] -> Bool Source #