Wow. #AdventOfCode2023 is EVIL in the part B.
Hint: NOTHING in the example says how to handle overlapping string-numbers. And SOMETIMES it's important 😐
Wow. #AdventOfCode2023 is EVIL in the part B.
Hint: NOTHING in the example says how to handle overlapping string-numbers. And SOMETIMES it's important 😐
I decided to go for #Ruby for the #AdventOfCode2023 - something I've not done much in (basically just #SevenLanguagesInSevenWeeks) but something that I know I can do enough in without wasting time going "WTF?" (see also: Haskell!)
https://dev.ibboard.co.uk/repos/other/adventofcode2023/file/tip
A fun chain of map, reduce and other bits in #Ruby for #AdventOfCode2023 day 2 🙂
There may be neater ways, but I like that Ruby lets you chain functions onto blocks.
https://dev.ibboard.co.uk/repos/other/adventofcode2023/rev/49dd1ae93696