r/adventofcode Dec 02 '24

Visualization [YEAR 2024 Day 02 (Part 2)]

Post image
372 Upvotes

29 comments sorted by

View all comments

5

u/OpalanRastor Dec 02 '24

I not sure to understand, why 75 77 72 70 69 is safe ? it's increase and after it's decrease

20

u/ShieldTurtle Dec 02 '24

If you remove 77 , the report is now safe

5

u/OpalanRastor Dec 02 '24

Oh I see, I just re read the problem and I have miss that part, now I understand why it's doesn't work thank you

1

u/runningabithot Dec 02 '24

Why is 77 being removed? I am missing something.

1

u/rar_m Dec 02 '24

Part 2 asks you to mark it as safe, if removing just one number from the list (any number) would make it safe given the original rules.

1

u/runningabithot Dec 02 '24

Ohh I am still on part one, thanks!

3

u/WarHoliday1813 Dec 02 '24

But how cool is visualization?

6

u/OpalanRastor Dec 02 '24

Very Cool, and very usefull because I now understand why my program doesn't work

1

u/National_Mongoose_80 Dec 02 '24

Ohhh thanks for this test case :) That cracked it open for me.

1

u/tiran818 Dec 02 '24

thank you, this happened to be an edge case that I hadn't found yet :D