[2023 Day #1 (Part 2)] Attempted solution - answer not accepted
[2023 Day #1 (Part 2)] Attempted solution - answer not accepted
I'm using this starter kit for the scaffolding so I can simply run mix test
for the example and mix d01.p2
to run the solution for my specific data set.
I've got the following code that passes p1 completely and the p2 example but not my specific data set. I can't find any bugs but the result fails for being "too high" and I'm really not sure why this is not being accepted. I have the debug output for each step and running through it manually everything seems right to me.
Is anyone able to point me in the right direction on what I'm missing?
I haven't studied your code but mine stumbled over this input line at one point:
eightjzqzhrllg1oneightfck
Simpler test:
12 oneight
Should yield 18 for part 2.
Thank you for the test case! I went out for dinner but I'll work on this tomorrow. I strongly suspect this is the exact issue but I'm going to have to rework some things so I want to tackle it with a fresh mind.
Thanks for this. Solved my problem.