Maximum triangle path sum: Difference between revisions

Content added Content deleted
(Added XPL0 example.)
(Add APL)
Line 237: Line 237:
+1320
+1320
</pre>
</pre>

=={{header|APL}}==
{{works with|Dyalog APL}}
<syntaxhighlight lang="apl">parse ← ⍎¨(~∊)∘⎕TC⊆⊢
maxpath ← ⊃(⊣+2⌈/⊢)/
⎕ ← maxpath parse ⊃⎕NGET'G:\triangle.txt'</syntaxhighlight>
{{out}}
<pre>1320</pre>


=={{header|AppleScript}}==
=={{header|AppleScript}}==