Chris Smith
83358f80a8
Optimise junction handling slightly.
Junctions always involve a 90 degree turn, so we only need
to check two directions.
6 년 전
Chris Smith
dcf5a9d263
Tidy.
6 년 전
Chris Smith
1d64161b6f
Day 19
6 년 전
Chris Smith
57656f0286
Tidy 18 a little.
6 년 전
Chris Smith
a69a905753
Messy day 18
6 년 전
Chris Smith
dbc1ecda90
Docker docker docker docker docker
6 년 전
Chris Smith
ed28564c71
Day 17.
6 년 전
Chris Smith
4705fb8f1f
Reduce instead of iterating.
6 년 전
Chris Smith
82a83d4976
Day 16
6 년 전
Chris Smith
5b8b1074da
Starmap!
6 년 전
Chris Smith
db954ea3c6
Pypy doesn't like underscored numbers.
6 년 전
Chris Smith
73f4b855c5
Day 15.
6 년 전
Chris Smith
f01f792a19
Further optimise day 14.
Flatten the grid into a single string (separated by line-feeds to
side-step wrap-around problems) and use the offset in the string
to identify cells instead of (x, y) tuples.
Don't calculate part one separately, just do it as we go.
6 년 전
Chris Smith
d9750988e3
Optimise day 14.
No point checking for connected nodes in +x or +y directions,
as we haven't processed them yet.
6 년 전
Chris Smith
0315acbdf2
Unused import
6 년 전
Chris Smith
4ffc067aeb
Day 14
6 년 전
Chris Smith
ff95b394af
Quick and dirty day 13
6 년 전
Chris Smith
62ca9f00fc
Much nicer and faster day 12.
6 년 전
Chris Smith
4132c197ab
Quick and dirty day 12.
6 년 전
Chris Smith
e262137831
Simplify a little.
I think only two repeats of the reductions are ever needed,
so ditch tracking whether the counts are modified or not.
Golf away a couple of other minor lines.
6 년 전
Chris Smith
90fa522699
Day 11.
6 년 전
Chris Smith
7204e3fc9a
Day 10.
6 년 전
Chris Smith
8db5f33c5e
Day 9.
6 년 전
Chris Smith
4b3459cc1e
Minor day 7 tidying
6 년 전
Chris Smith
374f7568d6
Day 8
6 년 전
Chris Smith
6f739fc0fb
Messy day 7
6 년 전
Chris Smith
17e847bdaf
Day 6.
6 년 전
Chris Smith
7c01d4305c
Day 5.
6 년 전
Chris Smith
321abf9979
Day 4.
6 년 전
Chris Smith
a97a5761f2
Unsatisfying day 3.
6 년 전
Chris Smith
1f3dd13e0c
f-strings
And Python3 fixes....
6 년 전
Chris Smith
3dbe7c565f
Day 2
6 년 전
Chris Smith
97c4a095d6
Random golfing.
6 년 전
Chris Smith
bc922910b3
Simplify slightly.
6 년 전
Chris Smith
0baf2ef31e
Add numpy version
6 년 전
Chris Smith
cc53fe7539
Day 1
6 년 전
Chris Smith
98002c18f6
README and LICENCE.
6 년 전