Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2023/day/6
This problem asks us to consider the time we should spend charging up a toy car to beat a target distance. The distance the car will travel is a quadratic equation. What we end up doing is finding the distance between the roots of the function.
- - >>> :{ :main + "Time: 7 15 30 Distance: 9 40 200 " :} 288 71503