Commits

Shlomi Fish committed e277808

Fix for a silly bug. #118 is working now.

Comments (0)

Files changed (1)

project-euler/118/euler-118.pl

 foreach my $rank (2 .. 9)
 {
     print "Reached rank $rank\n";
+
     my $sets = {};
+    push @sets_by_rank, $sets;
+
     # Make out sets of sub sets.
     foreach my $sub_rank (1 .. int($rank/2))
     {
         $recurse->($ending_digit, $init_vec); 
     }
 
-    push @sets_by_rank, $sets;
 }
 
 print "Num sets == ",