Advent Of Code 2024 Day 3 Part 1. Using a similar approach to part 1, we simulate disintegrating a brick by removing it from the supports of other bricks. We’ll create a part1 function that takes a string input (input.txt text string), then iterate through it line by line, converts each line into a vector of digits to help us calculate the.
Whole solution with history of refactorings as commits:. Then, we iterate through all blocks that would fall as a result of that.
Advent Of Code 2024 Day 3 Part 1 Images References :