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

delete a variable

aylac.top dd40a03c 0e985334

verified
Changed files
+1 -4
2025
3
gleam
+1 -4
2025/3/gleam/src/main.gleam
··· 13 13 |> list.fold(#(0, bank), fn(acc, i) { 14 14 let #(number, bank) = acc 15 15 16 - let bank_find = 16 + let max = 17 17 bank 18 18 |> list.reverse 19 19 |> list.drop(i) 20 20 |> list.reverse 21 - 22 - let max = 23 - bank_find 24 21 |> list.max(int.compare) 25 22 |> result.unwrap( 26 23 bank |> list.reverse |> list.first |> result.unwrap(0),