Home
Practice (2018 Day 1)
Day 1: The Tyranny of the Rocket Equation
Day 2: 1202 Program Alarm
Day 3: Crossed Wires
Day 4: Secure Container
Day 5: Sunny with a Chance of Asteroids
Day 6: Universal Orbit Map
Day 7: (Coming soon!)
Day 8: Space Image Format
Day 9: Sensor Boost
Day 10: (Coming soon!)
Day 11: (Coming soon!)
Day 12: (Coming soon!)
Day 13: Care Package
Day 8: Space Image Format
View 2019 day 8 puzzle details here.
Part A
I just solve this part naively by splitting the input into layers and counting occurances of each value per layer.
Part B
Rendering the image is done using a fold over the input pixels, updating the final grid of pixels as we go.
View the source for this page on GitHub!