Skip to content

Commit 8abdbc7

Browse files
committed
kortere node-cost-eksempel
1 parent 11a90dc commit 8abdbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: notebooks/y2024/d20.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
(let [{p :possible-locations
6868
from :end-node} (coordinates test-input)]
69-
(node->cost p from))
69+
(into {} (take 5) (node->cost p from)))
7070

7171
; Neste steg er å finne alle mulige snarveier. En snarvei er lik
7272
; en mulig lokasjon som kan nå en annen mulig lokasjon selv om en

0 commit comments

Comments
 (0)