advent of code 2025 in ts and nix

feat: add day 5 part 2 in ts

dunkirk.sh b6e2d3fc ce62e8a4

verified
Changed files
+8 -1
ts
+8 -1
ts/05/index.ts
···
})();
(() => {
+
// we just need to get the distance each range covers
+
let totalFreshIds = 0;
+
+
mergedRanges.forEach((range) => {
+
totalFreshIds += range.end - range.start + 1;
+
});
+
// Part 2
-
console.log("part 2:", 0);
+
console.log("part 2:", totalFreshIds);
})();