my solutions to advent of code
aoc advent-of-code

commit

aylac.top 17310cc7 b1650ce3

verified
Changed files
+1
2025
3
rust
src
+1
2025/3/rust/src/main.rs
···
let (loc, max) = bank[bank_index..bank_len - i]
.iter()
.enumerate()
+
// apparently the compiler is fine with reversing this and then using the standard max_by but im not. and it seems to have the same speed results. im not gonna be using tricks here ok im nice
.reduce(
|(maxi, max), (i, n)| {
if n > max { (i, n) } else { (maxi, max) }