wgnf/AdventOfCode2023

Day 5: Ideas

Closed this issue · 0 comments

wgnf commented
  • Location 0 ... long.Max, go from top to bottom and check if you find a seed for that location
  • Everything as ranges (especially seeds), merge each subsequent range together, at the end you'll get a list of location ranges. The first value will be the closest location