Day 1 solutions
How was day one for everyone? I was surprised at how tricky it was to get the right answer for part two. Not the usual easy start I've seen in the past. I'd be interested to see any solutions here.
How was day one for everyone? I was surprised at how tricky it was to get the right answer for part two. Not the usual easy start I've seen in the past. I'd be interested to see any solutions here.
Dart solution
Here's my solution to start the ball rolling. In the end I incorporated my part 1 answer into the part 2 logic, and golfed the code quite a lot.
My clojure solution
Part 2 was unexpected. Was not expecting that level of wrinkle on day 1 for sure.
I saw a few things that were guessing we might have a lot more of these sorts of twists to help throw off the AI solutions 🤷♂️
I'm not really happy with the repetition I have, but here's my Factor solution:
Here it is on GitHub with comments and imports.
Really cool idea! Just bad that it increases the submit time every failed attempt. I have to wait now 10 minutes on the 2nd question. + In what order?
For example: oneight CAN be 1ight or on8
Is it sorted by 1-9 or one - nine or first in word first served?
I think this is my currently issue, and i cant go through and sadly my patience of submitting every try every 10 mins has ended and i just lost it.
The delay is just so unnecessary...
It’s normally not so tricky on the first day, and the examples also normally do a much better job of guiding you away from wrong approaches so the increasing delay is intended to ensure you aren’t just spamming poorly tested answers.
The task in part two could be better written as “find the first occurrence of a digit in the string (either as a digit or as a word), and then separately find the last occurrence of a digit (either as a digit or as a word again) then compose these two digits”. Thinking of it like that should help you identify where your problem lies.
🕛 🕑 🕒 😲 Keep your distance please.