I just completed "Laboratories" - Day 7 of #AdventOfCode in #TurboPascal on the #Xi8088 computer.
Part 2 fits inside the same loop as part 1 with very few modifications.
Then I could make it read the file line by line as it goes, instead of building the entire map in memory.
By keeping track of the left and right limits of potential change, I could also reduce the memory accesses.
With 1.3 second of total runtime, I'm very happy with my solution today !










