Commit Graph

108 Commits

Author SHA1 Message Date
Stefan Müller df8b5c32fd Fixed BigInt test cases 2024-05-14 16:52:32 +02:00
Stefan Müller 1caee9ae6e Fixed BigInt string initializers 2024-05-14 16:52:09 +02:00
Stefan Müller eee05a9646 Added BigInt test cases (many broken) 2024-05-13 18:20:23 +02:00
Stefan Müller e11db7155a Added more BigInt features and fixes
- Fixed some uses of Move
- Added Sign, string initializers (hexadecimal and binary), explicit
converter to Int64, comparison operators
2024-05-13 18:19:15 +02:00
Stefan Müller eb2b4a3f99 Added TBigInt unequal operator 2024-05-13 15:17:13 +02:00
Stefan Müller 44c2c845e0 Added WIP analytical solution attempt 2024-02-21 21:05:34 +01:00
Stefan Müller 356cc2ad5e Merge branch 'bigint' into day24-analytical 2024-02-14 13:21:15 +01:00
Stefan Müller 9f619adc01 Fixed addition: final carry-over was inserted at the wrong end of the number 2024-02-14 12:09:18 +01:00
Stefan Müller ef1eba4538 Fixed shl operator: incorrect move for full digit shifts 2024-02-14 12:09:18 +01:00
Stefan Müller cec6985489 Updated operators 2024-02-14 12:09:18 +01:00
Stefan Müller 5a3c320942 Fixed TBigInt heap memory allocation (fixed memory leaks) 2024-02-14 12:09:18 +01:00
Stefan Müller bfb33673ee Fixed some redundant parenthesis 2024-02-14 12:09:18 +01:00
Stefan Müller 7a6623c99c Added draft of TBigInt object 2024-02-14 12:09:18 +01:00
Stefan Müller a034fbaedc Added integer factorization and enumeration of dividers 2024-01-31 18:58:49 +01:00
Stefan Müller cccf5693f7 Fixed negative GCD and allow Int64 for GCD and LCM 2024-01-23 12:21:43 +01:00
Stefan Müller 571019d604 Removed fgl references 2023-12-30 23:20:52 +01:00
Stefan Müller fb3f41a6af Added solution for "Day 24: Never Tell Me The Odds", part 1 2023-12-26 19:46:35 +01:00
Stefan Müller 5495b32692 Added solution for "Day 23: A Long Walk", part 1 2023-12-25 00:44:13 +01:00
Stefan Müller c3ecaf59fa Added custom constructors for TCosmicExpansion and TStepCounter to simplify test case setup 2023-12-23 20:16:18 +01:00
Stefan Müller 2bb89c952b Added solution for "Day 22: Sand Slabs", part 2 2023-12-23 20:08:10 +01:00
Stefan Müller 7b77846abc Added solution for "Day 22: Sand Slabs", part 1 2023-12-23 01:30:41 +01:00
Stefan Müller 197e5f81b9 Removed left-over comments from TStepCounter 2023-12-22 15:15:56 +01:00
Stefan Müller 4e28a7a4c2 Removed or unregistered tests for incomplete solutions 2023-12-21 21:14:50 +01:00
Stefan Müller 9855a38e50 Fixed missing visibility modifier on TFactor10CosmicExpansion test class 2023-12-21 21:12:18 +01:00
Stefan Müller bc2568756b Added solution for "Day 21: Step Counter", part 1 2023-12-21 21:11:31 +01:00
Stefan Müller 8d5757fae0 Added p/puzzle command line option to run only specific puzzles, and updated the application help text 2023-12-21 18:32:40 +01:00
Stefan Müller 55f8f3d674 Added solution for "Day 20: Pulse Propagation", part 1 2023-12-21 16:14:00 +01:00
Stefan Müller b2bfbf1993 Added solution for "Day 19: Aplenty", part 2 2023-12-20 19:25:21 +01:00
Stefan Müller c3019613bd Added solution for "Day 19: Aplenty", part 1 2023-12-20 11:41:17 +01:00
Stefan Müller b32a7345cb Updated puzzle commentary for days 13, 14, 15, and 16 2023-12-19 19:03:46 +01:00
Stefan Müller 58da932860 Added empty skeleton implementations and tests for days 17, 18, and 19 2023-12-19 17:57:58 +01:00
Stefan Müller 01ec0be32c Added solution for "Day 16: The Floor Will Be Lava", part 2 2023-12-19 17:26:18 +01:00
Stefan Müller e9737f0265 Moved the constants in UFloorWillBeLava below the types so that they can be together in a single const block 2023-12-19 13:15:46 +01:00
Stefan Müller 58c677f409 Added solution for "Day 16: The Floor Will Be Lava", part 1 2023-12-19 13:11:39 +01:00
Stefan Müller 2902689d07 Removed day 14 debugging code 2023-12-18 21:14:35 +01:00
Stefan Müller 95de6f1f7b Added another small performance improvement for day 14 2023-12-18 21:13:50 +01:00
Stefan Müller 29663ad82e Merge branch 'day14-test' 2023-12-18 20:33:47 +01:00
Stefan Müller 515d39da40 Updated day 14 algorithm to not operate directly on the strings 2023-12-18 20:30:24 +01:00
Stefan Müller d582eb4d52 Added solution for "Day 15: Lens Library", part 2 2023-12-17 23:11:44 +01:00
Stefan Müller 3501f6f574 Added solution for "Day 15: Lens Library", part 1 2023-12-15 18:21:37 +01:00
Stefan Müller d8b298dad8 Updated day 14 solution with some small code improvements 2023-12-15 00:46:21 +01:00
Stefan Müller 22b9a24893 Added solution for "Day 14: Parabolic Reflector Dish", part 2 2023-12-14 21:23:07 +01:00
Stefan Müller 637e7aedad Added missing test value for day 14, part 1 2023-12-14 20:47:46 +01:00
Stefan Müller f9583e684d Added solution for "Day 14: Parabolic Reflector Dish", part 1 2023-12-14 17:51:45 +01:00
Stefan Müller 01267c8f79 Refactored TPointOfIncidence to better unify the algorithm for both parts 2023-12-14 00:52:28 +01:00
Stefan Müller 307eb14b55 Added solution for "Day 13: Point of Incidence", part 2 2023-12-14 00:32:27 +01:00
Stefan Müller 6b888a3f68 Added solution for "Day 13: Point of Incidence", part 1 2023-12-13 18:46:38 +01:00
Stefan Müller d32297782c Fixed unused variables in THotSprings 2023-12-13 18:37:56 +01:00
Stefan Müller 64eeb98e85 Added solution for "Day 12: Hot Springs", part 1 2023-12-12 15:47:58 +01:00
Stefan Müller 8b13ad992b Added solution for "Day 11: Cosmic Expansion", part 2 2023-12-11 16:45:56 +01:00