Longest increasing subsequence: Difference between revisions

Content added Content deleted
(Add solution in Rust)
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 Perl 6>sub lis(@d) {
<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];