Commit Graph
283 Commits
Author SHA1 Message Date
ktims e5faee3470 day4: do a lot fewer allocations, performance improvement x10 2024-12-03 22:09:13 -08:00
ktims a81904f2eb day4: complete solution 2024-12-03 22:02:49 -08:00
ktims ec55b07c61 boilerplate: fix it 2024-12-02 21:22:05 -08:00
ktims 7a7fb4d02a day3: full solution 2024-12-02 21:18:37 -08:00
ktims b24593a469 day2: performance and adopt new duration print 2024-12-01 23:02:00 -08:00
ktims ec2651c3e4 boilerplate: improve duration printing 2024-12-01 21:32:17 -08:00
ktims 33c0c876c3 day2: full solution 2024-12-01 21:31:29 -08:00
ktims 968d795720 day 1: cleanup and refactor
* I misunderstood the problem and thought we were asked for the distance
  between the numbers' positions, not their values. Removed remnants of
  that.
* Move to struct-oriented solution
* Fix clippys and unnecessary code
2024-11-30 22:03:19 -08:00
ktims 8cab780ff3 day 1: problem 2 solution 2024-11-30 21:46:10 -08:00
ktims 892d59f21b day 1: problem 1 solution 2024-11-30 21:38:31 -08:00
ktims 76cacf4704 gitignore 2024-11-30 21:37:02 -08:00
ktims fd24918c7a 2024 AoC is here! 2024-11-30 21:36:05 -08:00
ktims 342f4c1883 day25: problem 1 solution - cheated with dot 2023-12-24 22:33:20 -08:00
ktims 881d0b08ad day24: problem 1 solution 2023-12-23 22:54:21 -08:00
ktims c1eb7761e3 day23: problem 2 solution 2023-12-23 02:54:07 -08:00
ktims 98456ed98d day23: problem 1 solution 2023-12-22 22:33:34 -08:00
ktims d6d4c0d056 gitignore 2023-12-22 20:58:14 -08:00
ktims 3bb3b3d6b6 day22: cleanup & nice output 2023-12-22 04:19:58 -08:00
ktims dd91259fe2 day22: problem 2 solution.
no help but annoyingly i misread the hint about low/high and didn't submit my *correct* answer for over an hour while I bug hunted!
2023-12-22 03:47:01 -08:00
ktims 8495969877 day22: problem 1 solution 2023-12-22 01:32:08 -08:00
ktims 190fc92842 day21: problem 2 solution
not proud of this one either, completely cheated and it does not get
exactly the correct error (it was off by one for my input), but the
quadratic solver on Wolfram Alpha was able to do it.
2023-12-21 03:17:11 -08:00
ktims eb6c1f42cd day 21: problem 1 solution
another unsatisfying one where i needed a visual hint to grok what i
should be doing.

a bunch of graph building stuff that wasn't needed for the part 1
solution at all.
2023-12-21 00:34:08 -08:00
ktims 512b05f624 day20: problem 2 solution - needed a hint 2023-12-20 01:48:09 -08:00
ktims 877101f9a2 day20: problem 1 solution 2023-12-20 00:13:23 -08:00
ktims cdfecf821c day19: refactoring and cleanup 2023-12-19 02:01:47 -08:00
ktims 2b921b5fb2 day19: problem 2 solution 2023-12-19 01:01:36 -08:00
ktims a5dea64b32 day19: problem 1 solution 2023-12-18 22:06:03 -08:00
ktims 8200c1a8cf root: add .rustfmt.toml 2023-12-18 02:04:22 -08:00
ktims 8d178ddfc6 day18: formatting and cleanup 2023-12-18 02:03:48 -08:00
ktims 3bc073f9b8 day18: problem 2 solution 2023-12-18 01:54:31 -08:00
ktims 0a9fa8e32f day18: problem 1 solution 2023-12-17 23:04:56 -08:00
ktims e65c17c8e6 day17: don't revisit the start position 2023-12-17 20:55:42 -08:00
ktims 3ee26cefe5 day17: super obvious code cleanups, more to do 2023-12-17 15:18:22 -08:00
ktims 9e37b2ce66 day17: add heatmap visualization of final path 2023-12-17 15:11:43 -08:00
ktims d422c9b84e day17: problem 2 - an ugly mess but finally working 2023-12-17 05:57:30 -08:00
ktims 5efa9853ca day17: problem 1 solution - a messy one! 2023-12-17 04:38:35 -08:00
ktims da25b73eca day16: use tail recursion unstead of passing mutable state 2023-12-16 11:07:39 -08:00
ktims 842def62dc day16: back to elegant recursion now that we track beams
problem 1 solution was busting the stack, so used an iterative approach,
but now that we track lit beams we can bail out early enough not to bust
the stack. performance is the same but it's much nicer.
2023-12-15 23:54:22 -08:00
ktims 427a0c766b day16: much cleaner, nicely factored solution, and much faster 2023-12-15 23:42:43 -08:00
ktims 332620db0f day16: problem 2 solution 2023-12-15 22:39:03 -08:00
ktims a8ec929818 day16: problem 1 solution 2023-12-15 22:19:46 -08:00
ktims f04078fbd7 boilerplate: remove unnecessary Duration import 2023-12-15 20:56:13 -08:00
ktims 498c96eaeb day5: reimplement in a sane, fast way 2023-12-15 18:10:29 -08:00
ktims 84bcbd550b day5: add timing 2023-12-15 18:09:49 -08:00
ktims e12c0134b0 day15: functional hash implementation using fold() 2023-12-14 23:33:48 -08:00
ktims eac460417c day15: problem 1 & 2 solutions 2023-12-14 22:07:49 -08:00
Keenan Tims 24c534ff88 day14: itertools is not used anymore 2023-12-14 15:43:11 -08:00
Keenan Tims 4f1f838d62 day14: simple Vec lookup is faster than HashMap since the cycle is short 2023-12-14 15:41:34 -08:00
Keenan Tims ca3254e1e1 day14: translation-based minimal copy implementation 2023-12-14 14:19:58 -08:00
ktims 78fb884c03 day14: some silly and not super effective performance optimizations 2023-12-14 01:57:06 -08:00