Anonymous user
Maximum triangle path sum: Difference between revisions
→{{header|Perl 6}}: update to latest semantics
(→{{header|Perl 6}}: update to latest semantics) |
|||
Line 201:
while @rows > 1 {
my @last := @rows.pop;
@rows[*-1] = @rows[*-1][] Z+ (@last Zmax @last[1..*]);
}
|