Advent of Code 2025 - Day 5

Ingredient management! We need to figure out which ingredients are fresh, and which aren't. Read the full prompt. Part 1 It's easy enough to write a bruteforce solution for Part 1 and check every ingredient to see if it lies within one of the given ranges of fresh ingredients. const freshRanges = ranges.map<Range>(r => { const [lower, upper] = r.split("-").map(Number); return { lower, upper } });…