Chris Smith
d415992930
Fix edge case
5年前
Chris Smith
724e0b9c46
Day 17
5年前
Chris Smith
c1820b60c5
Just use a sequence not an array
It's about 30% slower, but a lot nicer.
5年前
Chris Smith
877a6cca07
Tidy and optimise day 14 a little
5年前
Chris Smith
d46eb23779
Handle silly trailing new lines
5年前
Chris Smith
8fe21edd1b
Day 16
5年前
Chris Smith
f1e2824734
Minor optimisations
5年前
Chris Smith
c2a8a58817
Might as well use an array if we're pre-sizing it.
5年前
Chris Smith
b103c400c6
Slooowwww day 14
5年前
Chris Smith
9bee0203a0
Unused imports
5年前
Chris Smith
73e59cfc37
Day 13
5年前
Chris Smith
50a54c8a56
Unsatisfying day 12.
5年前
Chris Smith
d137fdb031
Minor day 11 optimisations
Calculate the power inline so we don't have to repeat the rack ID
etc every time; give in and use 1-based arrays instead of mapping
the 1-base back to 0-base.
5年前
Chris Smith
6ce0442f34
Optimise day 10
5年前
Chris Smith
46b2a06b3b
Day 11
5年前
Chris Smith
8e0bb8b3ab
Shave another 10ms off of day 9.
We don't need to store values as we can figure them out from
the memory location.
5年前
Chris Smith
4756cb9e28
Day 10.
Leaderboard position: 70 and 84
5年前
Chris Smith
3a4e408b81
Fix various mistakes with advancing the current pointer
Somehow this got the right answer for most cases.
5年前
Chris Smith
a9936edafc
More insanity in the name of performance.
5年前
Chris Smith
6e97ab6839
Further performance improvements
5年前
Chris Smith
89ccac1647
Use pointers and bare memory allocations. For speed.
5年前
Chris Smith
baf4de4200
Some attempts at day 9 performance improvements
5年前
Chris Smith
f7426d5690
Unused imports
5年前
Chris Smith
77a13266b1
Day 9
Leaderboard position: 124 & 365
5年前
Chris Smith
f61e2149bd
Alpine wasn't that fast...
time(1) just shows fewer decimal places than bash's time, and
I didn't notice!
5年前
Chris Smith
b76570b6c2
Run using bash, lazily compile
5年前
Chris Smith
3d1cfc5734
Remove python, use alpine. Holy speed, batman.
5年前
Chris Smith
8890f63c40
Performance improvement for day 6
5年前
Chris Smith
23507fa07d
Tidying
5年前
Chris Smith
5c5b892740
Use var not pointers
5年前
Chris Smith
faa0f08901
Tidy up day 8
Reverse the input so we can just pop entries off the end as we use
them, instead of tracking offsets horribly.
5年前
Chris Smith
22fc1d269a
Nim day 4
5年前
Chris Smith
5e82552252
Port day 3 to nim
5年前
Chris Smith
24197b6d4c
Add answer files.
5年前
Chris Smith
3f80651927
Style tweaks
5年前
Chris Smith
47bf49da5f
func!
5年前
Chris Smith
09ad330e31
Nim day 2
5年前
Chris Smith
a26c9ec929
Nim day 5
5年前
Chris Smith
3d268eefd7
Day 8
5年前
Chris Smith
d08c31c992
Day 7 performance improvements
- Skip over times when nothing is going to happen
- Instead of storing time remaining and decrementing it each cycle,
store the end time instead
5年前
Chris Smith
7321fcb8e3
Quick and dirty day 7.
This code was brought to you by insomnia.
5年前
Chris Smith
56f04d82c2
Tidy up and increase performance a bit
5年前
Chris Smith
0dcfe098fc
Messy day 6
5年前
Chris Smith
b912574e44
Deal with weird input with trailing LFs.
5年前
Chris Smith
665f0309b3
Day 1 in nim
5年前
Chris Smith
f081393751
Day 5
5年前
Chris Smith
0a752e5dff
Day 4
5年前
Chris Smith
634431a323
Performance improvements
5年前
Chris Smith
9c640c2cbc
Day 3
5年前
Chris Smith
b05a2e6e57
Appease Shane.
5年前