Stefan Harmuth
|
ee8dc537b8
|
Merge remote-tracking branch 'origin/master'
|
2022-01-17 09:38:26 +01:00 |
|
Stefan Harmuth
|
77dd1077e5
|
Counter().most_common() is twice as fast as searching in a for-loop
|
2022-01-17 09:38:18 +01:00 |
|
Stefan Harmuth
|
6d77259384
|
move getGrid inside, it's rainy
|
2022-01-14 12:44:09 +01:00 |
|
Stefan Harmuth
|
8552731beb
|
new test inputs \o/
|
2021-12-29 11:09:13 +01:00 |
|
Stefan Harmuth
|
9c86a5691d
|
windows pycharm path
|
2021-12-29 08:32:44 +01:00 |
|
Stefan Harmuth
|
04c61ab544
|
include year and start_day
|
2021-12-28 10:05:13 +01:00 |
|
Stefan Harmuth
|
7e7bdfc81d
|
updated AOCDay interface; missing download and submit (and start_day)
|
2021-12-27 13:55:51 +01:00 |
|
Stefan Harmuth
|
951c465d91
|
some reminders for next year
|
2021-12-25 07:02:34 +01:00 |
|
Stefan Harmuth
|
e24b22d58a
|
some reminders for next year
|
2021-12-25 06:59:36 +01:00 |
|
Stefan Harmuth
|
d4715de60c
|
day18: we should keep the working version in the repo
|
2021-12-25 06:50:13 +01:00 |
|
Stefan Harmuth
|
d308a1df4d
|
day25
|
2021-12-25 06:49:49 +01:00 |
|
Stefan Harmuth
|
e856869912
|
day24: remove useless method
|
2021-12-24 16:15:06 +01:00 |
|
Stefan Harmuth
|
1bd309732b
|
day24: much better
|
2021-12-24 16:12:30 +01:00 |
|
Stefan Harmuth
|
35f71f42bc
|
day24; half hand-solved, half brute-forced. Not happy with the outcome. Later need to come up with something that doesn't make assumptions about the input.
|
2021-12-24 08:55:30 +01:00 |
|
Stefan Harmuth
|
7d7aee7c49
|
day23
|
2021-12-23 18:50:19 +01:00 |
|
Stefan Harmuth
|
c15534c0aa
|
day23; having to work really doesn't help solving puzzles
|
2021-12-23 12:41:14 +01:00 |
|
Stefan Harmuth
|
8b4e3b9951
|
day23: p2 *should* work, but maximum recursion depth ...
|
2021-12-23 10:09:46 +01:00 |
|
Stefan Harmuth
|
52668314e7
|
day22; having to work really doesn't help solving puzzles
|
2021-12-22 17:08:57 +01:00 |
|
Stefan Harmuth
|
2d6876fc58
|
day22: splitting cubes is hard
|
2021-12-22 09:26:03 +01:00 |
|
Stefan Harmuth
|
d87b56e0ee
|
day21
|
2021-12-21 11:11:08 +01:00 |
|
Stefan Harmuth
|
07ef7991e6
|
day21: unfinished due to on-call interruption
|
2021-12-21 08:54:59 +01:00 |
|
Stefan Harmuth
|
0ef34d1a32
|
day18: there must be a better way to find left and right numbers instead of traversing the full tree again and again ...
|
2021-12-21 05:58:37 +01:00 |
|
Stefan Harmuth
|
81bef8d2bf
|
day18: trying to learn/play with binary trees
|
2021-12-20 16:49:58 +01:00 |
|
Stefan Harmuth
|
16f5e881fe
|
day18: start implementing binary tree solution
|
2021-12-20 08:56:23 +01:00 |
|
Stefan Harmuth
|
44148fd4ae
|
day20
|
2021-12-20 08:14:34 +01:00 |
|
Stefan Harmuth
|
9bd8cfe118
|
day19: forgot the final result tests
|
2021-12-19 09:12:45 +01:00 |
|
Stefan Harmuth
|
f909b2d97b
|
day19: takes 20s to run (per part), but it gets the job done. Added to the list of "needs improvement later"
|
2021-12-19 09:11:38 +01:00 |
|
Stefan Harmuth
|
9bcdd10ed7
|
new ircbot interface; still some stuff to figure out
|
2021-12-18 20:47:45 +01:00 |
|
Stefan Harmuth
|
963cde3ccd
|
day18: don't double-search
|
2021-12-18 10:49:16 +01:00 |
|
Stefan Harmuth
|
081eb3302a
|
day18: regexp power!
|
2021-12-18 10:15:31 +01:00 |
|
Stefan Harmuth
|
537abb62bd
|
day18: slow as fuck, but working
|
2021-12-18 09:09:35 +01:00 |
|
Stefan Harmuth
|
c05092a123
|
day16: muuuuch nicer code
|
2021-12-17 16:39:20 +01:00 |
|
Stefan Harmuth
|
23f9d800f8
|
day16: muuuuch nicer code
|
2021-12-17 16:37:00 +01:00 |
|
Stefan Harmuth
|
1339bd60f7
|
day17: narrow search space some more
|
2021-12-17 08:39:21 +01:00 |
|
Stefan Harmuth
|
c527de2e10
|
day16: don't play with strings when calculating values ...
|
2021-12-17 07:48:06 +01:00 |
|
Stefan Harmuth
|
09d316941e
|
day16: main class code beautification
|
2021-12-17 07:37:51 +01:00 |
|
Stefan Harmuth
|
c4db3e5192
|
day17: minor code beautifications
|
2021-12-17 07:28:51 +01:00 |
|
Stefan Harmuth
|
c2f01add9f
|
day17: if velX == 0 and posX < minX, you'll never reach the target
|
2021-12-17 07:14:52 +01:00 |
|
Stefan Harmuth
|
0a0c829454
|
day17
|
2021-12-17 07:03:06 +01:00 |
|
Stefan Harmuth
|
159ce3ca9f
|
day16: remove some unnecessary code
|
2021-12-16 21:33:59 +01:00 |
|
Stefan Harmuth
|
978e47db5b
|
day16: version 1
|
2021-12-16 09:05:38 +01:00 |
|
Stefan Harmuth
|
56c4e03322
|
day15: minimal code beautifications
|
2021-12-15 12:49:06 +01:00 |
|
Stefan Harmuth
|
8b31c6c531
|
day15: add results as test
|
2021-12-15 11:33:14 +01:00 |
|
Stefan Harmuth
|
cd0985c692
|
day15 (w/o final tests for now)
|
2021-12-15 09:41:39 +01:00 |
|
Stefan Harmuth
|
765f74e765
|
day14: code shortening (*params are cool :)
|
2021-12-14 09:38:06 +01:00 |
|
Stefan Harmuth
|
55e62174db
|
day14
|
2021-12-14 06:43:48 +01:00 |
|
Stefan Harmuth
|
1d3df3bdb8
|
day13: massive speed-up by getting only active cells (already Coordinate()s) in a row/column from Grid()
|
2021-12-13 11:11:37 +01:00 |
|
Stefan Harmuth
|
1fd5b27944
|
day13: no need to join, just to split again afterwards ...
|
2021-12-13 07:03:00 +01:00 |
|
Stefan Harmuth
|
eb62a58f20
|
day13: test final answer on p1
|
2021-12-13 06:52:33 +01:00 |
|
Stefan Harmuth
|
9fdfcf4682
|
day13
|
2021-12-13 06:51:26 +01:00 |
|