Advent of Code Day 10: Hoof It
algorithm.
Keep track of all 9 positions reached from that trailhead (unique).
Finally:
Sum up the counts of unique 9 positions reachable from all trailheads.
This forms the "score" of each trailhead.
Part 2: Count All Distinct Paths
Here, the focus shifts to counting the number hiking trails from each trailhead. This involves:
Counting all possible paths (not just unique endpoints).
Problem Solved - As always feel free to give me a follow on Twitter where you can be notified of my articles on DevTo, FreeCodeCamp and other dev tips and tricks.
SOCIAL SHARE CARD GENERATOR