81(uiua): clean-up with pervasive + and fill infinity
This commit is contained in:
@@ -11,11 +11,9 @@ $ 805 & 732 & 524 & 37 & 331
|
||||
# find shortest path to lower right corner
|
||||
# ? cost-matrix
|
||||
Sol ← +⋅⊙⊡◡(
|
||||
°□⊢path(
|
||||
⊃(+0_1|+1_0) # get children
|
||||
∩↧⊙⤙⊙∘ ⊙⊙⊸(-1△) # clamp children to max index
|
||||
⤚⊡⊟ # get costs
|
||||
| ≍⊙(-1△) # are we at the corner yet?
|
||||
⊢path(
|
||||
⤚⬚∞⊡ +[0_1 1_0] ¤ # get children & costs
|
||||
| ≍⊙(-1△) # are we at the corner yet?
|
||||
)
|
||||
) 0_0
|
||||
⍤⤙≍ 2427 Sol ε
|
||||
|
||||
Reference in New Issue
Block a user