I just completed "Movie Theater" - Day 9 of #AdventOfCode in #TurboPascal on the #Xi8088 and I'm quite proud of my solution!

I got the logic right for part 2 nearly immediately but plain brute force was way too slow: I had to crank up the CPU speed in #DOSbox quite a bit just to test it.

Doing some precalc (likely not the same as what other people did 😉) on the input and re-thinking data structure helped a huge lot, going from 1 hour to less than 4 minutes!

#Retrocomputing #Pascal #DOScember