Browse Source

Might as well use an array if we're pre-sizing it.

master
Chris Smith 5 years ago
parent
commit
c2a8a58817
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      day14.nim

+ 1
- 1
day14.nim View File

@@ -7,7 +7,7 @@ let
7 7
     inputInt = input.parseInt
8 8
 
9 9
 var
10
-    scores = newSeq[int](100_000_000)  # Arbitrary large preallocation
10
+    scores: array[50_000_000, int]  # Arbitrary large preallocation
11 11
     size = 2
12 12
     elf1 = 0
13 13
     elf2 = 1