Unable to load image

Advent of Code 2022: Day 8

Post solutions here :marseysad: :marseyill:

25
Jump in the discussion.

No email address required.

I think I'm about done with this. I've solved it but somewhere I must have gotten an array index off by one. I can't get a Python IDE running right now (long story) so it would take forever to find my mistake. And I can't really justify doing something that tedious when I won't learn anything from it.

Does it get any more interesting in later weeks or is it just gonna be more parsing text files and lists of lists? I may not be neurodivergent enough for this.

Jump in the discussion.

No email address required.

You can just change the url to 2021 and see what it turns into for each day. Decide how painful it looks

Jump in the discussion.

No email address required.

Randomly choose 2021 day 22 and it's just this but 3-d with a touch of combinatorics.

Jump in the discussion.

No email address required.

Day 23 looked kinda fricked tbh

Jump in the discussion.

No email address required.

And I can't really justify doing something that tedious when I won't learn anything from it.

You can try to learn how to write it in a way that makes off by 1 errors significantly less likely.

Also, use print statements :marseyboomer:, and don't neglect testing it on example input.

It's going to require somewhat nontrivial algorithms sometimes (even today, if the input was a couple of times larger, you'd probably had to solve part2 more efficiently than looking from each tree), but also yeah, expect tasks that, if you don't consciously and purposefully seek to eliminate tedium, can easily overwhelm you with it.

Jump in the discussion.

No email address required.

You can try to learn how to write it in a way that makes off by 1 errors significantly less likely.

Well if I wanted to do that, I just wouldn't use Python. :marseysmug2:

Jump in the discussion.

No email address required.

unironically, you are learning as much from finding the off-by-one error as you are from earlier AoCs. getting complex things right like that and understanding why is critical in being a good coder.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.