summaryrefslogtreecommitdiff
path: root/Day12.lean
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2025-10-12 18:44:32 +0200
committerAndreas Grois <andi@grois.info>2025-10-12 18:44:32 +0200
commit6aaa70943202efaa1e6b4ff8b6b8b6b94a564040 (patch)
tree171a1a1b459b82f016e756e8649767a2d1311160 /Day12.lean
parent2a9261d1ba962deff9fcc1784be44563af513af5 (diff)
Lean 4.19
Diffstat (limited to 'Day12.lean')
-rw-r--r--Day12.lean2
1 files changed, 1 insertions, 1 deletions
diff --git a/Day12.lean b/Day12.lean
index 63410be..9395e39 100644
--- a/Day12.lean
+++ b/Day12.lean
@@ -161,7 +161,7 @@ def countPossiblePositions (remainingSpace : List SpringState) (remainingDamaged
else
0
else
- Prod.snd $ countPossiblePositionsWithDamagedMemoized Std.HashMap.empty remainingSpace remainingDamagedGroups (List.ne_nil_of_not_empty.mp $ (Bool.not_eq_true _).mp h)
+ Prod.snd $ countPossiblePositionsWithDamagedMemoized Std.HashMap.emptyWithCapacity remainingSpace remainingDamagedGroups (List.ne_nil_of_not_empty.mp $ (Bool.not_eq_true _).mp h)
def part1 (springs : List SpringArrangement) : Nat :=