Advent of Code 2017 - PHP TDD with PHPSpec - Day 2 - Part 2 - Corruption Checksum

Опубликовано: 23 Март 2026
на канале: David Stockton
183
5

Live coding following TDD with PHPSpec for the Day 2 part 1 Advent of Code challenge for 2017 - Corruption Checksum

http://adventofcode.com/2017/day/2

Repo is here: https://github.com/dstockto/advent201...
Step by step: https://github.com/dstockto/advent201...

In the second part of the challenge we learn that instead of the previous method of calculating the checksum, we need to find a pair of numbers in the row that are evenly divisible and calculate the result of that division. Then we need to sum all those values.