Skip to content

Commit

Permalink
missing type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 13, 2024
1 parent 49c15da commit 9995766
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions solutions/src/2024/13.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ cost extra (ax, ay, bx, by, x, y)

-- | The buttons are colinear so we'll need to select a different
-- approach.
colinear :: Integer -> Integer -> Integer -> Integer -> Integer -> Integer -> Integer
colinear ax ay bx by x y
-- Buttons weren't colinear with the output - 0 is failure
| ax * y /= ay * x || bx * y /= by * x = 0
Expand Down

0 comments on commit 9995766

Please sign in to comment.