this post was submitted on 04 Nov 2023
3 points (80.0% liked)

Advent of Code

293 readers
1 users here now

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

https://adventofcode.com

founded 2 years ago
MODERATORS
3
submitted 1 year ago* (last edited 1 year ago) by mykl to c/adventofcode
 

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 :-)

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here