Made with Xcode 10.1 and Swift 4.2
Trying to solve each puzzle each day. I hope I'll have enough time and motivation to do so.
The puzzle will be solved in Swift ; but not in playground like last year (that was a mistake).
No cheating. Many other person do the puzzle. I'll have to come up with my own solution ... or skipping a day.
Some code may be reused from one day to another.
Not all special cases will be treated by the code.
Some attention will be ported to performance consideration, let try to make that less than 5 seconds per day!
Day | Computing time* | Part 1 | Part 2 |
---|---|---|---|
1 | 0,028s | 505 | 72330 |
2 | 0,005s | 7776 | wlkigsqyfecjqqmnxaktdrhbz |
3 | 0,167s | 120408 | 1276 |
4 | 0,010s | 11788 | 36896 |
5 | 0,143s | 10598 | 5312 |
6 | 0,036s | 3260 | 42535 |
7 | 0,004s | BHRTWCYSELPUVZAOIJKGMFQDXN | 959 |
8 | 0.035s | 38780 | 18232 |
9 | 3,930s | 384205 | 3066307353 |
10 | 0,104s | AHFGRKEE | 10243 |
11 | 1,879s | 21,93 | 231,108,14 |
12 | 0,029s | 3337 | 4300000000349 |
13 | 0,030s | 124,90 | 145,88 |
14 | 3,053s | 6910849249 | 20330673 |
15 | 3,274s | 206720 | 37992 |
16 | 0,043s | 640 | 472 |
17 | 0,036s | 39367 | 33061 |
18 | 2,170s | 456225 | 190164 |
19 | 0,169s | 2106 | 23021280 |
20 | 6,804s | 3966 | 8173 |
21 | 9min 16s | 12446070 | 13928239 |
22 | 4,119s | 6256 | 973 |
23 | 0,026s | 219 | - |
24 | TBA | 26868 | - |
* : Best elapsed time of the complete solution for my MacBook Pro 13in mid 2013 in "Release" mode