Longest increasing subsequence: Difference between revisions
m
→{{header|Perl 6}}: adding "Perl 6" in the subsection titles
(→{{header|D}}: Add sub-header) |
m (→{{header|Perl 6}}: adding "Perl 6" in the subsection titles) |
||
Line 334:
=={{header|Perl 6}}==
===<!--Perl 6-->Dynamic programming===
Straight-forward implementation of the algorithm described in the video.
Line 357:
0 2 6 9 11 15</pre>
===<!--Perl 6-->Patience sorting===
<lang Perl 6>sub patience(@deck is copy) {
my @S = [@deck.shift() => Mu].item;
|