Crazy how much difference the right data structure / #algorithm for a task makes.
This week I learned about #Deterministic #Finite #Automata and #Nondeterministic Finite Automata just to redo my clunky #AdventOfCode2023 day 12 challenge, written in #Rust #RustLang
Runtime for part 1 dropped from 1-2secs to milliseconds. Part 2 also milliseconds 😮
Are there any good Rust crates for DFAs/NFAs?
Many people solved that problem with #Dynamic #Programming - something else for the learn list 😉