Commit Graph

251 Commits

Author SHA1 Message Date
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
7b7095b8d7 day 17 parts 1 & 2, before code cleaning. 2021-12-27 11:10:41 +01:00
f3717c906b init day 17 2021-12-21 16:32:10 +01:00
f8720a2129 day 16 part 2 final 2021-12-21 12:18:11 +01:00
bdfad93f4a day 16 part 2 (before code cleanup) 2021-12-21 11:57:04 +01:00
50963c233b day 16 part 1 (with tons of debug printf) 2021-12-20 20:36:23 +01:00
90303eb8b5 pool.c: name becomes char array instead of pointer 2021-12-20 15:10:17 +01:00
118d7f8452 refactor pool_init -> pool_create 2021-12-20 14:44:15 +01:00
93ef9438b8 day 16 init 2021-12-20 12:45:12 +01:00
43378e9366 Makefile: add gmon.out in clean target 2021-12-20 12:44:43 +01:00
9d9b111e2c pool.c: add destroy() to totally free a pool's memory 2021-12-20 11:59:02 +01:00
a84c52fa94 day 15 part 2 final 2021-12-20 09:54:23 +01:00
aace9d72de day 15 part 2 (1st version) 2021-12-19 19:32:09 +01:00
befb71ed22 day 15 part 1 2021-12-19 14:59:52 +01:00
fde80b124b day 15 init 2021-12-17 17:54:54 +01:00
85b4204894 day14: more code cleanup 2021-12-17 16:51:24 +01:00
ca6b612d0d day 14 final (need some comments, will not remember :-) 2021-12-17 16:30:21 +01:00
d0c6c6e4f7 day 4 part 2 (before cleaning code) 2021-12-17 16:19:57 +01:00
33ae1b1751 day 14 part 1 (stupid algorithm) + init part 2 2021-12-15 20:32:21 +01:00
295f032d6a day 14 init 2021-12-15 16:03:01 +01:00
cbbfb507c3 day 13: remove debug 2021-12-15 15:58:13 +01:00