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

skibidi

aylac.top bbca61b5 1e5c8f6f

verified
Changed files
+1 -3
2025
2
gleam
+1 -3
2025/2/gleam/src/main.gleam
···
pub fn main() {
let assert Ok(input) = file.read(from: "../input.txt")
as "Input file not found"
-
// let input =
-
// "11-22,95-115,998-1012,1188511880-1188511890,222220-222224,1698522-1698528,446443-446449,38593856-38593862,565653-565659,824824821-824824827,2121212118-2121212124"
let input =
input
|> string.trim
···
|> list.fold(0, fn(acc, r) {
list.range(r.start, r.end)
|> list.fold(acc, fn(acc, i) {
-
case i >= 10 {
True -> {
let s = int.to_string(i)
let len = string.length(s)
···
pub fn main() {
let assert Ok(input) = file.read(from: "../input.txt")
as "Input file not found"
let input =
input
|> string.trim
···
|> list.fold(0, fn(acc, r) {
list.range(r.start, r.end)
|> list.fold(acc, fn(acc, i) {
+
case i > 10 {
True -> {
let s = int.to_string(i)
let len = string.length(s)