Longest increasing subsequence: Difference between revisions
Content added Content deleted
(Add solution in Rust) |
Thundergnat (talk | contribs) m (→Dynamic programming: fix markup) |
||
Line 1,440: | Line 1,440: | ||
Straight-forward implementation of the algorithm described in the video. |
Straight-forward implementation of the algorithm described in the video. |
||
<lang |
<lang perl6>sub lis(@d) { |
||
my @l = [].item xx @d; |
my @l = [].item xx @d; |
||
@l[0].push: @d[0]; |
@l[0].push: @d[0]; |