Longest increasing subsequence: Difference between revisions
m
→{{header|Perl 6}}: fix markup
Thundergnat (talk | contribs) m (→Dynamic programming: fix markup) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: fix markup) |
||
Line 1,436:
=={{header|Perl 6}}==
{{works with|rakudo|
===<!--Perl 6-->Dynamic programming===
Straight-forward implementation of the algorithm described in the video.
Line 1,461:
===<!--Perl 6-->Patience sorting===
<lang
my @S = [@deck.shift() => Nil].item;
for @deck -> $card {
|