Introduction
Advent of Code is a series of coding challenges in December, now in its eleventh season. Each day a new puzzle is unlocked and programmers in all the world try to solve them, with various goals in mind: to learn a new language, to improve their skills, to have fun, to help Santa… This year there were 12 days of puzzles.The Problem
The Day 12 2025 problem was on placing presents in a limited space under the Christmas tree. You get presented with 1000 scenarios and you have to figure out for each of them whether it is solvable, meaning that the presents fit into the designated area. For each scenario, the area is rectangular, but its size varies. The presents come in a handful of shapes, but their number varies again. Here is an example of how the 6 pieces can be placed in the given area (here 12x5):

