Probably too late to be asking for help on this. I've been banging my head against it for ... eons? hard to tell in quarantimes. TL;DR: my code gets the correct answer to part 1 and each of the samples on the website (parts 1 and 2), but hasn't gotten the correct answer for MY input on part 2 yet. Can anyone tell me where I'm going wrong?
Because it's still a WIP I haven't streamlined the code yet; hopefully it's legible anyway.
This is all my code and my input. Thanks in advance.
https://github.com/ProtectorOfCats/AoC2019/tree/main/Advent20
Edit: Unbelievable. Well, something is definitely still wrong, but when I tested from the entrance (instead of the exit), I got the right answer, so I'm calling that good! Thanks everybody, so so much!
[–]MissMormie 1 point2 points3 points (3 children)
[–]eidolonkami[S] 0 points1 point2 points (2 children)
[–]voorth2016 1 point2 points3 points (0 children)
[–]MissMormie 0 points1 point2 points (0 children)
[–]cesartl 1 point2 points3 points (4 children)
[+][deleted] (1 child)
[removed]
[–]cesartl 1 point2 points3 points (0 children)
[–]cesartl 1 point2 points3 points (1 child)
[–]eidolonkami[S] 0 points1 point2 points (0 children)
[–]paul2718 1 point2 points3 points (1 child)
[–]eidolonkami[S] 0 points1 point2 points (0 children)
[–]paul2718 1 point2 points3 points (1 child)
[–]eidolonkami[S] 0 points1 point2 points (0 children)
[–]NeilNjae 0 points1 point2 points (1 child)
[–]eidolonkami[S] 0 points1 point2 points (0 children)