Commit Graph

221 Commits

Author SHA1 Message Date
b8e61bcacb day 22: typo in day # comment 2022-01-29 21:00:31 +01:00
efb25f363f bugfix bit_for_each64_2 2022-01-29 15:47:38 +01:00
1e8556b5d5 day 23 init 2022-01-28 19:37:23 +01:00
5c392199fe Day 22 : clean code, more comments. 2022-01-28 17:07:44 +01:00
6b753e9d6c day 22: working part 2. Two days lost due to int overflow :-( 2022-01-28 16:08:05 +01:00
35053f3c8c day 22: change part1 to match part2 changes in input read. 2022-01-27 19:10:36 +01:00
97411fbb08 day 22 part 1 (basic/stupid algorithm, not suitable for part 2) 2022-01-27 16:24:43 +01:00
ecbeffc3d9 Day 22 init 2022-01-25 13:47:18 +01:00
7082ce3565 day 21: fix memory leaks 2022-01-25 13:46:48 +01:00
58027905b8 day 21 part2, 1st version. Need improvement in queue management (!) 2022-01-24 15:49:02 +01:00
76bd022049 day 21 part 1 2022-01-24 00:12:13 +01:00
cf2bed124e day 21 init 2022-01-23 21:58:17 +01:00
dacefcd5ad day20: final version (more comments, more code cleanup) 2022-01-23 21:48:18 +01:00
db7013309b day20 EXAMPLE2.txt: impossible input 2022-01-23 21:47:46 +01:00
63e737b863 day 20: code cleanup 2022-01-23 20:50:51 +01:00
f1af70e55a Added example file to resolve both parts with initial '#' 2022-01-23 20:45:16 +01:00
ec4684a756 day 20, part 2 (before code cleanup) 2022-01-23 20:44:28 +01:00
897453fb39 day 20: working version for part 1 2022-01-23 20:38:58 +01:00
81cfe12d67 day20, part1: working version for given example (not for input) 2022-01-23 20:27:52 +01:00
640feea875 day 20 init 2022-01-22 20:42:38 +01:00
2692f3f621 day19: cosmetic changes 2022-01-22 20:18:15 +01:00
5346b0e7fa day 19, after optimization (8.5s -> 0.06s) 2022-01-22 19:37:25 +01:00
c84a37874c day 19: clean logs 2022-01-22 15:05:23 +01:00
b11c35be26 day 19 part 2, before cleaning 2022-01-22 14:01:13 +01:00
858258770b day 19 part 1 (ugly, many useless code) 2022-01-22 13:22:39 +01:00
1caa102c23 day19: move beacons/distances from arrays to lists 2022-01-21 16:54:15 +01:00
9fd980c71b day 19: save before reverting scanners's beacons/distances to linked lists 2022-01-19 17:23:26 +01:00
6c3672f8d1 (temp) save not working day19 - likely mismatch in scanners ref array 2022-01-16 21:16:21 +01:00
96c9f7d6e3 pool_create: do not fail if structure is too small to handle list pointers 2022-01-16 21:07:30 +01:00
fe4520da7f list.h: blank line 2022-01-16 21:00:16 +01:00
a03cc1c1c4 day19: tentatively get 3 common beacons between overlapping scanners 2022-01-14 20:26:22 +01:00
f1dc062250 day 18: typos in comments 2022-01-14 18:24:59 +01:00
645188216e day19: find common beacons between two scanners 2022-01-14 15:10:45 +01:00
e3382ef3dd debug.h: fix mistake in debug() printf __attribute__ 2022-01-14 12:47:05 +01:00
8a67ac0321 debug.h: add printf() attribute to debug() function 2022-01-14 12:43:05 +01:00
b255dc5d43 .gitignore: added common dummy files (FOO*, BAR*, etc..) 2022-01-14 11:52:42 +01:00
33bee9500c day 19: first functions (read input, calculate beacons distances...) 2022-01-14 11:50:14 +01:00
46fd8a30bc day 18: improve tree structure explanation 2022-01-14 11:49:23 +01:00
77ef1fa003 Makefile day 19: added memcheck targets 2022-01-14 11:48:47 +01:00
457b3eb9b9 Snailfish data structure diagram + cosmetic changes 2022-01-12 11:02:51 +01:00
a88aa2312b (C): 2021 -> 2022 2022-01-11 19:49:14 +01:00
cd4a21380d day 18: more code cleanup/comments 2022-01-11 19:46:27 +01:00
a0b094aa61 day 19 init 2022-01-07 22:35:38 +01:00
0e333e5cb9 day 18: code cleanup, fixed valgrind errors. 2022-01-07 22:24:26 +01:00
0344a9162f day 18 part 2 (before cleaning) 2022-01-07 21:08:56 +01:00
8d3a064c73 day 18 part 1 (with tons of debug) 2022-01-07 20:33:01 +01:00
2f47bb23ea typo 2021-12-28 11:42:30 +01:00
0f932bca95 day 18 init 2021-12-27 14:22:25 +01:00
95ef1bc864 day 17: more code cleaning 2021-12-27 11:34:09 +01:00
8748eb0f1f day17: code cleaning + results 2021-12-27 11:28:10 +01:00