Commit Graph

382 Commits

Author SHA1 Message Date
b734f0c5af
Get alternative input file via env variable instead 2021-12-01 23:12:39 +01:00
731d7f5e33 Move imports into macros 2021-12-01 14:16:29 +01:00
250bad526c Revert "Remove env stuff from input reading"
I remember now. This was so I can `cargo run bigboy_input` without code changes
2021-12-01 14:12:36 +01:00
63c695608e Remove env stuff from input reading
No idea what last year me was thinking
2021-12-01 13:30:10 +01:00
85370a3b3b Use aocd to get daily input
see https://pypi.org/project/advent-of-code-data/
2021-12-01 09:54:28 +01:00
a044e4cf1b
Refactor day 1
tuple_windows is terribly slow, wtf
2021-12-01 06:26:45 +01:00
94bf221efd
Add day 1
Part 2 is ugly. Better solution later when it’s not 6AM anymore
2021-12-01 06:19:33 +01:00
1c3ae8ec96 Minor rustfmt changes 2021-11-22 16:34:19 +01:00
111a56880f Make 2020 compile again 2021-11-22 14:34:40 +01:00
a65c137864 Set up everything for 2021 2021-11-22 14:30:40 +01:00
adb0e84858
caching meme for D17 to save time 2021-07-09 00:21:34 +02:00
a570cf6fda
Remove hardcoded neighbors implementation
Not that this one is much better, but after hours of trying,
it’s all I got to compile. :(
2021-07-08 22:23:48 +02:00
4b4f4fbf80
Add tests and clean up add/sub/mul for positions 2021-07-08 19:58:30 +02:00
123d9bd1fb
Get rid of Position2D, 3D, 4D 2021-07-08 19:35:31 +02:00
c726998c0c
Migrate day 12 to PositionND 2021-07-08 19:27:56 +02:00
98b8a9c81c
Migrate day 11 to PositionND 2021-07-08 19:21:07 +02:00
eee3183dc0
Merge branch 'd17-constgenerics' 2021-07-08 19:09:45 +02:00
e838f132c2
Make day 17 work with const generics 2021-07-08 19:05:31 +02:00
3d80b9f073
clippy lints and stabilizations
A few things have changed in the past few months
2021-04-29 19:14:28 +02:00
506eff857e
Generify day 19 over all pattern vectors 2020-12-19 14:00:03 +01:00
ca14b85812
2020/19/2 2020-12-19 13:02:01 +01:00
cd6b531a5e
slightly reduce recursion depth 2020-12-19 12:50:48 +01:00
a1bf3c288b
2020/19/1 2020-12-19 12:32:28 +01:00
022b2a447b
Optimize 2020/18 2020-12-18 19:04:50 +01:00
5c87450e11 2020/18/2 2020-12-18 11:44:45 +01:00
d313bd6e25 2020/18/1 2020-12-18 11:19:00 +01:00
b8ae6f5711
try to make const generics work for day 17 2020-12-17 21:30:30 +01:00
b3e81ed412
Hopefully the last optimization for Day 17
5x faster, pog. I’m an idiot.
2020-12-17 17:17:00 +01:00
b7d6d40394 Optimize 2020/17 further
This avoids some hashing per step and unneeded copies.
About 10% faster.
2020-12-17 16:27:07 +01:00
d29e481a24
Optimize 2020/17
that early exit makes it almost an order of magnitude faster
2020-12-17 15:45:30 +01:00
eef4aa7643 Add 2020/17/2 2020-12-17 15:15:51 +01:00
a2bee8300b Refactor grid stuff into modules 2020-12-17 14:51:05 +01:00
804345629a implement FromIterator for Grid 2020-12-17 14:13:02 +01:00
49fac3e0a9 Add 2020/17/1 2020-12-17 14:04:05 +01:00
a2aa8a353f Add helper 2020-12-16 16:22:28 +01:00
60e63a667d add early exit 2020-12-16 12:26:13 +01:00
e4733f487a Add 2020/16 2020-12-16 11:56:24 +01:00
c339f51ec5 reformatting 2020-12-15 10:57:59 +01:00
c95653f24d Improve 2020/15
fold() the world :umu:
2020-12-15 10:51:41 +01:00
1b2652a70d Add 2020/15/1 2020-12-15 10:21:17 +01:00
6e0d79090b
A little less mutable state in 2020/14 2020-12-14 19:58:13 +01:00
e4225fa134
Make 2020/14/2 work
Apparently, brute force is the way
2020-12-14 18:59:36 +01:00
faa4541981 fail at 2020/14/2 2020-12-14 16:09:10 +01:00
6d572982fb Add 2020/14/1 2020-12-14 10:45:37 +01:00
61205c81f7
Optimize 2020/13/1 2020-12-13 22:18:34 +01:00
4792a10a7c
Optimize 2020/12
This is about 10% faster for part 2. mod is bad.
2020-12-13 12:26:59 +01:00
e2464b1d3e
Add 2020/13 2020-12-13 11:45:17 +01:00
da5a57089c
Add 2020/12 2020-12-12 14:31:40 +01:00
b4330c2c6f Make loop of day 11 slightly less ugly
At the cost of more mutations rooHappy
2020-12-11 14:45:41 +01:00
e5cfb6282e Add 2020/11 part 2 2020-12-11 13:32:03 +01:00