For Advent of Code 2023 Day 9, I get a bunch of lines, each with a pattern of numbers. For each line, I need to find the next number in the pattern. I'll use a recurrsive function to find the next item. In part two, I need to do the same but in reverse, so I'll just reverse the input.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/9
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part 1 description
[01:43] Input analysis
[02:30] Recurrsive get_next
[04:58] Calculating answer
[05:37] Running on examples and solving
[06:05] Part 2 description
[06:22] Solve part 2
[06:55] Summary
#adventofcode #python
Смотрите видео Day 9: Mirage Maintenance [AOC2023 Python] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь 0xdf 09 Декабрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 167 раз и оно понравилось 12 людям.