diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-12-10 22:23:24 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-12-10 22:23:24 +0100 |
| commit | 14eb4f0ec02b62d42dc0be5c0c73955e4c1b19e2 (patch) | |
| tree | 9a28e816892398a1204e18d53d49e5d73e81ad09 /10 | |
| parent | 9940ce72851363be6e45163eb82f7dfa637cf13f (diff) | |
Minor improvement day 10 part 2
Diffstat (limited to '10')
| -rw-r--r-- | 10/part2.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -69,7 +69,8 @@ uint64_t solve(const char *filename) } // Add our device's built-in joltage adapter - insert_value_sorted(input, &input_size, input[input_size - 1] + 3); + input[input_size] = input[input_size - 1] + 3; + input_size++; fclose(file); |
