For Advent of Code 2023 Day 14, I'm given a grid with rocks that roll around as I tilt the grid in different directions. The rocks roll to the end of the barrier, another rock, or some other rocks that don't move. In part one, I will tilt once and make a calculation based on the position of the rocks. In part 2, I will tilt four billion times. I'll have to find a cycle and use math to get the correct state.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/14
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part 1 description
[01:40] Input analysis
[02:30] rotate_count_clockwise / print_grid
[08:23] Converting to class
[11:11] tilt_north
[16:38] total_load
[19:10] Solve part 1
[19:32] Refactor total_load
[21:42] Description of struggles
[22:08] Part 2 description
[23:23] Description of bugs
[23:49] Create second Grid
[24:54] tilt_cycle
[26:06] testing title_cycle
[27:07] tile_cycles
[29:05] Math to get state
[32:50] Running 1000000000 times
[33:39] Solving part 2
[24:04] Summary
#adventofcode #python
Смотрите видео Day 14: Parabolic Reflector Dish [AOC2023 Python] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь 0xdf 14 Декабрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 167 раз и оно понравилось 8 людям.