Commit Graph
100 Commits
Author SHA1 Message Date
Kharec 8bbf6662b1 chore: add 2016D3 input 2025-12-09 19:21:51 +01:00
Kharec b60c971d50 feat: register third day 2025-12-09 19:21:44 +01:00
Kharec 5dab84eeb3 feat: solve part two 2025-12-09 14:40:37 +01:00
Kharec 2283b62503 clean: oneliner for compute and check 2025-12-09 07:10:30 +01:00
Kharec ccf50c12c9 test: add unit test for part two 2025-12-09 06:45:39 +01:00
Kharec f25d7511aa feat: solve part one 2025-12-09 06:33:16 +01:00
Kharec 243ccf3da9 test: unit test for part one 2025-12-09 06:14:02 +01:00
Kharec aedf9cd06d chore: day 9 input 2025-12-09 06:05:48 +01:00
Kharec c053c905ad feat: register ninth day 2025-12-09 06:05:42 +01:00
Kharec 7dff40745c feat: solve part two using keypad with 10+ for letter and 0 for inexisting keys 2025-12-08 22:52:28 +01:00
Kharec 0e8563b216 test: add printing unit test for part two (as it returns string) 2025-12-08 22:39:11 +01:00
Kharec 6720bbabc1 feat: solve part one building the code digit by digit 2025-12-08 22:34:59 +01:00
Kharec 6035989da4 test: add unit test for part one 2025-12-08 22:26:25 +01:00
Kharec dc16893777 chore: add 2016D2 dataset 2025-12-08 22:26:15 +01:00
Kharec fdfad57cee feat: register second day 2025-12-08 22:26:01 +01:00
Kharec 9cf00b290f feat: solve part two using same logic and injecting me :) 2025-12-08 22:17:11 +01:00
Kharec 47072a4982 feat: extract shared functions and solve part two 2025-12-08 22:01:31 +01:00
Kharec 62748990cb test: unit test for part two 2025-12-08 21:55:29 +01:00
Kharec 42c69d44e5 feat: solve part one 2025-12-08 21:51:40 +01:00
Kharec c6eb51a395 comment: no test for part two 2025-12-08 21:45:42 +01:00
Kharec 6777696df6 test: add unit test for part one 2025-12-08 21:45:27 +01:00
Kharec a8e244f9ab feat: register third day 2025-12-08 21:43:39 +01:00
Kharec 911f9bfe7b chore: add 2022D3 dataset 2025-12-08 21:43:15 +01:00
Kharec 24a65d3752 feat: solve part one using brute-force permutation search 2025-12-08 21:26:06 +01:00
Kharec 0bd0ec5f1e test: add unit test for part one 2025-12-08 21:24:58 +01:00
Kharec 0ad418ed1f feat: register d13 2025-12-08 17:39:35 +01:00
Kharec ec48231aae chore: add D13 dataset 2025-12-08 17:39:07 +01:00
Kharec 5631822e73 feat: tiny refactor for part two which we're solving using Kruskal's algorithm 2025-12-08 15:21:42 +01:00
Kharec 630d32ba11 test: add unit test for part two 2025-12-08 12:30:10 +01:00
Kharec 22500b7076 feat: solve part one 2025-12-08 12:26:37 +01:00
Kharec 9d2d27b257 refactor: rename parameter to standardize 2025-12-08 11:42:12 +01:00
Kharec 879509c7ba refactor: rename parameter 2025-12-08 11:40:08 +01:00
Kharec a0805111b4 test: add unit test for part one 2025-12-08 06:08:56 +01:00
Kharec b0cd4f37b1 feat: register day 8 2025-12-08 06:01:48 +01:00
Kharec 8999f45aad chore: day8 dataset 2025-12-08 06:01:39 +01:00
Kharec 838803c53e feat: solve part two 2025-12-07 22:01:36 +01:00
Kharec c4063b5390 test: unit test for part two 2025-12-07 21:59:04 +01:00
Kharec 1c5bd1e448 feat: solve part one 2025-12-07 21:55:26 +01:00
Kharec 6d9b2092bd test: add unit test for part one 2025-12-07 21:51:57 +01:00
Kharec 9b218d763d feat: start 2016 2025-12-07 21:51:41 +01:00
Kharec 10c5b0fbc6 feat: register day one 2025-12-07 21:39:52 +01:00
Kharec 503eec14c6 chore: add 2016D1 dataset 2025-12-07 21:39:07 +01:00
Kharec deac7f97bb refactor: format imports 2025-12-07 13:34:14 +01:00
Kharec a3fb7ac353 feat: solve part two using recursive dfs + memoization 2025-12-07 12:24:40 +01:00
Kharec 8f4e11215f test: add unit test for part two 2025-12-07 09:55:03 +01:00
Kharec 78b0032578 feat: solve PartOne using DFS algorithm 2025-12-07 09:54:53 +01:00
Kharec 536f6f52ff refactor: return directly 2025-12-07 09:35:20 +01:00
Kharec 96ca1afb9b test: add unit test for PartOne 2025-12-07 09:30:18 +01:00
Kharec 780263e78b feat: register day seven 2025-12-07 09:27:51 +01:00
Kharec 49ff399f97 chore: D7 dataset (and it rhymes (in french only)) 2025-12-07 09:26:42 +01:00
Kharec 27d14b1711 feat: solve part two 2025-12-07 00:00:16 +01:00
Kharec 89b2ec90f2 test: add unit test for part two 2025-12-06 23:57:23 +01:00
Kharec f8a2e839b9 feat: solve part one using maps and regex 2025-12-06 23:55:34 +01:00
Kharec 94ecbd27bf test: add unit test for part one 2025-12-06 23:45:52 +01:00
Kharec b44a592808 chore: D4 dataset 2025-12-06 23:44:13 +01:00
Kharec b00d2f13a3 feat: register day four 2025-12-06 23:44:01 +01:00
Kharec b26f1531f5 feat: solve part two 2025-12-06 23:43:01 +01:00
Kharec 7de5fa7794 fix: update parsing to avoid doing split in both functions 2025-12-06 23:40:20 +01:00
Kharec 66e91e05a4 test: update input to be a []string 2025-12-06 23:40:02 +01:00
Kharec a20bb8ab09 test: add unit test for part two 2025-12-06 23:36:12 +01:00
Kharec c5fcc8b353 feat: solve part one 2025-12-06 23:34:48 +01:00
Kharec 0357f263cc test: add unit test for part one 2025-12-06 23:13:21 +01:00
Kharec 8488debc25 feat: register day four 2025-12-06 23:11:46 +01:00
Kharec 00dd40428b chore: 2021D4 dataset 2025-12-06 23:11:09 +01:00
Kharec 3d35a57723 feat: solve part two using right-to-left processing 2025-12-06 12:08:57 +01:00
Kharec 0d40e32a39 test: add unit test for part two 2025-12-06 11:48:22 +01:00
Kharec fd34db28cb feat: solve part one using grid transposition 2025-12-06 11:46:50 +01:00
Kharec 65edd3258e test: unit test for part one 2025-12-06 11:07:39 +01:00
Kharec e914bc6492 feat: register day six 2025-12-06 11:04:13 +01:00
Kharec 0eed8089b6 chpre: 2025D6 dataset 2025-12-06 11:03:34 +01:00
Kharec 1048d20cef docs: update requirements 2025-12-05 09:26:46 +01:00
Kharec 00ccbaf0d0 feat: solve part two using merged ranges 2025-12-05 09:08:10 +01:00
Kharec 51f733127c test: add unit test for part two 2025-12-05 08:46:10 +01:00
Kharec d96febeae3 feat: solve part one using binary search on sorted range 2025-12-05 08:41:39 +01:00
Kharec 79b31dad19 test: add unit test for part one 2025-12-05 08:03:50 +01:00
Kharec d5146e7e3e feat: include day five 2025-12-05 08:01:50 +01:00
Kharec d2d6f280b3 chore: 2025D5 dataset 2025-12-05 08:01:40 +01:00
Kharec 79d9f8d7cc feat: solve part two using json and recursive approach 2025-12-04 21:10:42 +01:00
Kharec bcc4fc3432 test: add unit testing for part two 2025-12-04 21:00:19 +01:00
Kharec cc2d7d1a3d feat: solve part one using basic regex parsing 2025-12-04 20:59:09 +01:00
Kharec 83f6db5e33 test: unit tests case for p1 2025-12-04 20:54:43 +01:00
Kharec 12b54d51d2 feat: include D12 2025-12-04 20:44:48 +01:00
Kharec 89c154de37 chore: add 2015D12 dataset 2025-12-04 20:44:17 +01:00
Kharec ea037debed fix: silence golangci-lint 2025-12-04 17:35:49 +01:00
Kharec a0a0c43690 feat: simplified input parsing by appending all lines directly 2025-12-04 17:32:36 +01:00
Kharec bce49d51f7 feat: applied De Morgan simplification 2025-12-04 17:32:18 +01:00
Kharec 77a352aa2e feat: solve part two using the same logic, twice 2025-12-04 16:53:15 +01:00
Kharec fd6db0cc65 refactor: add code in helpers for part two 2025-12-04 16:52:28 +01:00
Kharec 2b548fa1ef feat: solve part one with pruned bruteforce 2025-12-04 16:49:43 +01:00
Kharec e0465b9b8d clean: no test cases for this day 2025-12-04 16:32:43 +01:00
Kharec 0523610080 chore: 2015D11 dataset 2025-12-04 16:24:24 +01:00
Kharec e341c12763 feat: include D11 2025-12-04 16:24:14 +01:00
Kharec 6cff0b7931 feat: solve part two with iterative process 2025-12-04 07:05:56 +01:00
Kharec f5bfe1e578 test: unit test for part two 2025-12-04 06:48:41 +01:00
Kharec 0fbe2956c3 refactor: didn't press :w it seems 2025-12-04 06:46:28 +01:00
Kharec 9280430285 feat: solve part one using prebuilt map for rolls 2025-12-04 06:45:40 +01:00
Kharec b91e34bc8e test: add unit test for part one 2025-12-04 06:32:20 +01:00
Kharec 9f10576a0c feat: include 2025D4 2025-12-04 06:30:23 +01:00
Kharec 8a9f4cb506 chore: add 2025D4 dataset 2025-12-04 06:29:55 +01:00
Kharec d3098c0d9c cleaning: input.txt is either downloaded or created empty 2025-12-03 15:17:24 +01:00