
As the forklifts break through the wall, the Elves are delighted to discover that there was a cafeteria on the other side after all.
Solution in Java
Full source can be found: in GitHub
Day 5 revolves around interpreting ranges of ingredient IDs and determining which IDs are considered fresh. The input is split into two logical sections: a list of inclusive ID ranges, followed by a list of individual ingredient IDs. Part one asks us to validate the individual IDs against the ranges, while part two focuses entirely on the ranges themselves.
[Read More]







