For the first part of day 6 we parse each word on each line as either a number or as an operator (multiplication or addition). We then order them all by column and calculate the final value once we have all numbers and the operator. Most of the work takes place in the parsing function, the rest is just summing it all up. |
||
|---|---|---|
| .. | ||
| Day1.hs | ||
| Day2.hs | ||
| Day3.hs | ||
| Day4.hs | ||
| Day5.hs | ||
| Day6.hs | ||
| Main.hs | ||