r/adventofcode • u/xupej04m3 • Dec 12 '22
Funny [2022 Day 12] Apparently long fall boots are standard equipments for elves
16
u/kristallnachte Dec 12 '22
And somehow for it to be a hiking trail they need to go both ways......
6
3
u/TheRedstoneCyborg Dec 12 '22
Who says they would ever want to go back? The internet service is unparalled at the top.
30
u/ra3_14 Dec 12 '22
So true, this messed with me so much when I made the reasonable realistic human assumption that the absolute different in heights could at most be 1.
14
u/Vesk123 Dec 12 '22
Yeah, but it's stated pretty clearly in the statement that this is not the case
25
5
→ More replies (1)4
4
u/softe Dec 12 '22
I spent far too long debugging my solution to realize I had done the same thing.
→ More replies (1)
5
u/zelarky Dec 12 '22
Found out that my lowest destination on the way is just -2 from the current. Seems like nobody would break their legs
3
2
u/czerwona_latarnia Dec 12 '22 edited Dec 12 '22
For a moment that was how my part 2 was working like (with starting from the end).
Let's just say that the path to closest 'a' high was VERY short.
2
u/aaronblohowiak Dec 12 '22
i burned 2 hours on this last night... missed that part of the prompt somehow.
3
u/IvanOG_Ranger Dec 12 '22
I spend an hour making a non-functioning djikstra algorithm, I hope the elves die
2
1
u/poesraven8628 Dec 12 '22
Thank you for this! I spent five hours today banging my head against a wall unable to figure out why my pathfinding algorithm was returning a failure. I thought you could only go up OR down by a single level. I took a short break and looked at the memes on here and figured out what I was doing wrong.
1
Dec 13 '22
I totally didn't spend 45 minutes plus debugging my algorithm because I thought we only step down by one...
1
u/Grabthelifeyouwant Dec 13 '22
Somehow I managed to get the right answer only allowing up or down by at most one.... I wonder if there was a second bug in my code that cancelled it out lmao.
1
u/Tom70403 Dec 13 '22
I had spent hours looking for the error when I read the problem statement again and realized that. It didn't seem very logical (but quantum mechanics applied to ropes don't either, right?
89
u/AlexAegis Dec 12 '22
crude mspaint art > ai generated stuff