Commits

Shlomi Fish committed 08ad20a

Add the l_colors.

  • Participants
  • Parent commits 32eea2a

Comments (0)

Files changed (1)

File project-euler/189/euler_189.go

         }
     }
 
+    var l_colors[num_colors] ColorArray;
+    for i := ColorInt(0); i < num_colors; i++ {
+        var arr = CreateColorArray()
+        for c := ColorInt(0); c < num_colors; c++ {
+            if (c != i) {
+                arr.colors[arr.n] = c
+                arr.n++
+
+            }
+        }
+        l_colors[i] = arr
+    }
+
     /*
     for ((next_range.Diff() >= 0) && (next_range.SqDiff() > max)) {