Discussion thread for day 19 of the Advent of Code - https://adventofcode.com/2024/day/19
IF Substring([data],Length([data])-length([towel]),length([towel])) = [towel]
THEN left([data],Length([data])-Length([towel]))
ELSE [data]
ENDIF
I get a 1m23s runtime for both parts, so expect you could do some more pruning.
Done.
I got stuck on one approach for awhile before taking a step away to reconsider it. I started with a macro-less Part 1 that I'm pretty proud of!