Other articles


  1. AoC 2025 - Day 5

    import fs from 'node:fs';
    
    const input = fs.readFileSync('input.txt', 'utf-8');
    
    const sample = `\
    3-5
    10-14
    16-20
    12-18
    
    1
    5
    8
    11
    17
    32`;
    

    Part 1

    The first part of the input has a list of inclusive intervals, eg 3-5 for 3, 4, 5 etc. The second part has a …

    read more
  2. AoC 2025 - Day 4

    This one was quite easy, I quickly saw it can be solved by convolution but since I was using javascript I suffered with all the array handling and the for loops. After I finished the problem, I wanted to my hands on the python implementation, behold

    import numpy as np …
    read more
  3. AoC 2025 - Day 3

    Day 3 of AoC 2025. Following up on yesterday, today I'm gonna try to solve the question using typescript, but in a Jupyter notebook, writing along while programming. Today's input looks like this:

    import fs from "node:fs"
    
    const input = fs.readFileSync("input.txt", "utf-8")
    
    console.log(input.split('\n').slice …
    read more
  4. Advent of Code 2025

    AoC is back for another year! This time it's a bit shorter, only 12 days. This might be a good change overall, since in 2023 I fizzled out around day 20.

    The first day has us simulating a dial ranging from 0 to 99 on a safe, where we needed …

    read more

social