From e0cc0a4fedde3c80cd0adc61d3e1d527eb51fa3c Mon Sep 17 00:00:00 2001 From: Roger Bell_West Date: Mon, 12 Jul 2021 12:57:59 +0100 Subject: Removed comment code --- challenge-121/roger-bell-west/rust/ch-2.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/challenge-121/roger-bell-west/rust/ch-2.rs b/challenge-121/roger-bell-west/rust/ch-2.rs index ed57d3a589..c28b8fc3ba 100644 --- a/challenge-121/roger-bell-west/rust/ch-2.rs +++ b/challenge-121/roger-bell-west/rust/ch-2.rs @@ -87,24 +87,3 @@ fn tsp (d: Vec>) -> (usize, Vec) { path.push(0); return (opt,path); } - -// my $bits=(1<<$n)-1 & ~1; -// my @res; -// foreach my $k (1..$n1) { -// push @res,[$c{$bits}{$k}[0]+$d->[$k][0],$k]; -// } -// my @r=map {$_->[0]} @res; -// my %r=map {$r[$_] => $_} (0..$#r); -// my ($opt,$parent)=@{$res[$r{min(@r)}]}; -// my @path; -// foreach my $i (0..$n1-1) { -// push @path,$parent; -// my $nb=$bits & ~(1 << $parent); -// $parent=$c{$bits}{$parent}[1]; -// $bits=$nb; -// } -// push @path,0; -// @path=reverse @path; -// push @path,0; -// return [$opt,\@path]; -// } -- cgit