Unable to load image
Reported by:

rDrama Advent of Code day 9: No Edition

Sorry I'm in a hospital waiting room just throwing this out quick

Summary for those just joining us:

Advent of Code is an annual Christmas themed coding challenge that runs from December 1st until christmas. Each day the coding problems get progressively harder. We have a leaderboard and pretty good turnout, so feel free to hop in at any time and show your stuff!

Whether you have a single line monstrosity or a beautiful phone book sized stack of OOP code, you can export it in a nice little image for sharing at https://carbon.vercel.app

What did you think about today's problem?

https://adventofcode.com/2023

Our Code is 2416137-393b284c (No need to share your profile, you have the option to join anonymously if you don't want us to see your github)

37
Jump in the discussion.

No email address required.

durrr I have one that doesn't resolve to 0 and I even checked by hand, it resolves all the way down to 2.

Am I missing a step in the instructions or something?

e: and if I don't use abs value for the difference it says I'm wrong

this is rigged

e: posting my beautiful monstrosity in case someone's bored enough to help

https://i.rdrama.net/images/1702163377331771.webp

e: 1000DC to whoever figures out what my code is doing wrong (this just pt1 btw)


And it fits on the screen :D

https://i.rdrama.net/images/17021756482651238.webp

Jump in the discussion.

No email address required.

I think one issue might be that your exit condition on the while loop is if the row sums up to 0, that could happen if the entire row is 0, but it can also wrongly happen if some negative values negate the positive values.

Jump in the discussion.

No email address required.

oh Jesus this gets me at least once a month

every time

Jump in the discussion.

No email address required.

AND THE FINAL ANSWER WAS 5 OFF

lmao enjoy tha coins king

Jump in the discussion.

No email address required.

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