diff --git a/2023/day05/part2.ts b/2023/day05/part2.ts index 976d439..3d19cc0 100644 --- a/2023/day05/part2.ts +++ b/2023/day05/part2.ts @@ -50,6 +50,13 @@ export async function answer(input: string): Promise { const to = from + seedRangeLines[i + 1]; seedRanges.push([from, to]); } + // TODO: see if there are overlapping ranges we can cut down to reduce the amount of work + // for (const [from, to] of seedRanges) { + // for (const [from2, to2] of seedRanges) { + // if (from === from2 && to === to2) continue; + // if (from >= from2 && ) + // } + // } const rangeMins: number[] = await Promise.all( splitRanges(splitRanges(seedRanges)).map(