Commit Graph

37 Commits

Author SHA1 Message Date
3fad087730
Well... forgot to change a type of a returning num variable in day 5 and 6. xD 2023-12-07 01:05:18 +04:00
0760a2d627
In part 1of day 5 and 6 parse_number will return now uint64_t. 2023-12-07 01:02:32 +04:00
1953469f35
Forgot to change parse_number() in day 6 part 1. 2023-12-07 00:46:32 +04:00
932d76ba8a
Added a test for day 6. 2023-12-07 00:44:40 +04:00
4dbf46697c
Made parse_number inlined and made an arg const char *. Not sure if inlining will work, but I'm lazy to check. :P 2023-12-07 00:44:19 +04:00
17df598e16
A little refactoring for day 2. 2023-12-07 00:34:10 +04:00
2f2b4194c6
A little refactoring for day 3. 2023-12-07 00:29:49 +04:00
b19aa5edca
A little refactoring for day 4. 2023-12-07 00:27:09 +04:00
83944d8d4c
A little refactoring for day 5. 2023-12-07 00:24:03 +04:00
443576621d
A little code refactoring for day 6. 2023-12-07 00:20:35 +04:00
2ae96c9a04
Day 6 part 2 complete! Plus a little cleanup in part 1. :) 2023-12-06 19:26:59 +04:00
e3fa47e071
Day 6 part 1 complete. 2023-12-06 18:56:28 +04:00
69b8c48ef3
Also remove {} from a for in d5p1. 2023-12-06 05:27:21 +04:00
c1f11c1ebc
Do not subtract 1 each time, just use < instead of <= in d5p1. 2023-12-06 05:26:19 +04:00
3b277352d1
Cleaning up through all code. 2023-12-06 05:18:43 +04:00
fbdc38a171
In d5p1 also replaced int64_t with uint64_t. 2023-12-06 04:19:03 +04:00
7a19ad713f
A cleanup for d5p1. Also removed an ABS macro since it doesn't needed. 2023-12-06 04:17:21 +04:00
f092158510
A little cleanup in d5p2. 2023-12-06 04:11:43 +04:00
4a80bd2b08
From day5p2 an unused macro ABS was removed. 2023-12-06 03:52:34 +04:00
a92ae78e91
Added README.md. 2023-12-06 03:45:54 +04:00
b096a62100
Join omp pragmas
in d5p2.
2023-12-06 03:45:36 +04:00
5afa103769
Day 5 part 2 complete! Heh, it takes around 91.217s +- 6s to run. :) So a test for day5 with my data is commented out. :) 2023-12-06 03:15:44 +04:00
7d0f6e6e64
Day 5 part 1 complete. 2023-12-05 18:49:47 +04:00
96a6593672
Let's introduce a special stackpointer_t type to represent a type of a stack pointer.
Also set STACK_SZ to UINT8_MAX + 1.
2023-12-04 18:49:03 +04:00
57941c07ec
Replace uint32_t with uint64_t to support wider numbers. 2023-12-04 18:44:47 +04:00
fcabbd7dec
Day 4 part 2 complete! 2023-12-04 18:21:52 +04:00
6df6e7f36d
Day 4 part 1 complete. 2023-12-04 17:12:18 +04:00
2d3e387f4f
Bring ISDIGIT macro in part 1 of the day 3 as well. 2023-12-03 19:01:32 +04:00
2c30c9e195
Do not compile a static executable. 2023-12-03 19:00:55 +04:00
031a7c6892
Remove ctype.h include. 2023-12-03 18:38:36 +04:00
c2efe3c9f0
Let's replace a func call with a simple macro that just checks for if a character is between 0x30 ('0') to 0x39 ('9'). 2023-12-03 18:36:14 +04:00
f4735ab54f
Pass just a line to parse_number(). 2023-12-03 18:31:34 +04:00
fabaaffe11
Day 3 part 2 complete! 2023-12-03 18:27:32 +04:00
61fe20524b
Day 3 part 1 complete. 2023-12-03 17:57:26 +04:00
7ce37165f7
Day 2 part 2 complete! 2023-12-02 19:45:58 +04:00
fc47930faf
Day 2 part 1 complete! 2023-12-02 19:20:52 +04:00
83ae802789
Init commit with a complete day 1. 2023-12-02 17:34:17 +04:00