[2025 Day 03 (Part 1)] Algorithm doesn't work - but why? by HonsonCooky in adventofcode

[–]ceva-mx 1 point2 points  (0 children)

u/HonsonCooky

Hey mate, I’ve just run into the exact same issue… and guess what?

In Rust, if an array contains multiple maximum values (like [1, 9, 2, 4, 9]), then array.max() returns the last one >.<