diff options
| author | Andreas Grois <andi@grois.info> | 2024-09-08 19:32:49 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2024-09-08 19:32:49 +0200 |
| commit | 67d0b0c8fa307308e8a96ce4566821aa8260ef73 (patch) | |
| tree | eaad69864ef3b931763753da4cd815f674874770 /Day10.lean | |
| parent | fd1b33bf92ef82eca77fdd1f66a732a0093642cf (diff) | |
Fix issue in Day10 Part1 end condition.
Diffstat (limited to 'Day10.lean')
| -rw-r--r-- | Day10.lean | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -979,7 +979,7 @@ def part1 (area : Area) : Option Nat := do where pathsMet := λ (ps : List $ Area.PathHead area) ↦ match ps with | [] => false - | p :: ps => ps.any λh ↦ h.current = p.current + | p :: ps => ps.any λh ↦ h.current = p.current || pathsMet ps noSolution := λ (ps : List $ Area.PathHead area) ↦ match ps with | [] => true | _ :: [] => true |
