I just completed "Linen Layout" - Day 19 - Advent of Code 2024 #AdventOfCode https://adventofcode.com/2024/day/19
my #rust confusion, er, solution. https://github.com/robbiemu/advent_of_code_2024/blob/main/day-19/src/lib.rs
Started out avoiding recursion.. which is slow.
Got both down to ~310μs with some refactoring once I realized the counting mistake.
just want to point out, because I spent a couple of hours trying to actually generate a collection of each solution to each in part2, and you should not do that! Just count them!
=> More informations about this toot | View the thread | More toots from robbiemu@mastodon.social
=> View adventofcode tag | View rust tag This content has been proxied by September (3851b).Proxy Information
text/gemini