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

comment

aylac.top 9c99620b 990d41ba

verified
Changed files
+2 -1
2025
1
gleam
+2 -1
2025/1/gleam/src/main.gleam
···
let zeroes =
acc.zeroes
+ case raw_new_number <= 0 && acc.number != 0 {
-
// if it is below zero before being moduloed and the original number itself wasn't zero it means that it did touch zero but the division thing wouldn't count it, so we give this extra support
+
// if it is below zero before being moduloed and the original number itself wasn't zero it means that it did touch zero but the division thing wouldn't count it, so we give this extra support.
+
// of course, there is no need to deal with a negative to positive situation because the acc number will never be negative!!!
True -> raw_zeroes + 1
False -> raw_zeroes
}