As a warmup for this year’s Advent of Code, I’m re-reading and posting my solutions to last year’s challenges. You can read, run and edit today’s solution by following the post link.
This challenge required us to identify overlapping ranges. One of my first programming jobs many years ago involved writing a maintenance scheduling system, and I still remember the ‘Aha!’ moment when I realised how much simpler the checks could be than the convoluted rules that were my first attempt.
Anyway, this time round I just re-used a class from a previous year to model the ranges. Much easier :-)
You must log in or register to comment.