For Advent of Code 2023 Day2, each line of text represents a game. Each game is a series of observations of colored cubes being pulled from a bag. I'll be asked to first determine which games are possible, and then to find the minimum number of cubes in each bag.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/2
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
#adventofcode #python
[00:00] Part 1 description
[01:00] genday / input review
[01:38] Create target
[02:50] Parsing lines
[04:53] Adding check for part1
[05:51] Running part 1
[06:15] Debugging newline issue
[07:10] Solving part 1
[07:26] Part 2 description
[08:08] Adding part 2 to loop
[10:15] Solving Part2
Смотрите видео Day 2: Cube Conundrum [AOC2023 Python] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь 0xdf 02 Декабрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 441 раз и оно понравилось 28 людям.