4 ms·
I had a very similar solution for my AoC in Toit, but I used a Deque instead of just having a trailing index into the input string. https://github.com/erikcorry
by ErikCorry 4y ago
I had a very similar solution for my AoC in Toit, but I used a Deque instead of just having a trailing index into the input string.
https://github.com/erikcorry/advent-of-code-2022/blob/main/day6.toit https://github.com/erikcorry/advent-of-code-2022/blob/main/d...
Then a friend solved it with regular expressions, but I found a sicker regex. After all, that's what regexes are about.
https://mobile.twitter.com/erikcorry/status/1600524753596456967 https://mobile.twitter.com/erikcorry/status/1600524753596456...