Day 6: Wait For It [AOC2023 Python] @0xdf
Day 6: Wait For It [AOC2023 Python]  @0xdf
Uploaded December 2023 | Updated November 2026, 3 hours ago
For Advent of Code 2023 Day6, I'm given a series of times and distances. Each pair represents a race, where the time is the amount of time to solve it, and the distance is the record distance for that race. I am able to split the time between reving the engine and going. The longer I rev, the fast I move for the remaining time. I'll use quadratic math to solve the challenge. At the end, I'll show that brute force would have also worked in reasonable time.

Code 2023 AOC: gitlab.com/0xdf/aoc2023
Challenge Link: adventofcode.com/2023/day/6

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

#adventofcode #python

[00:00] Part 1 description
[01:40] Input analysis
[02:32] Parsing input
[04:54] Writing part 1
[08:45] Debugging
[10:46] Solving part 1
[10:57] Part 2 description
[11:32] Solve part 2
[12:55] Brute force solution
Day 6: Wait For It [AOC2023 Python]Day 19 - An Elephant Named Joseph [Revival of Code 2023 - Advent of Code 2016]Linux 101 [Sans Holiday Hack 2023]Reassembling Werkzeugs Pin - Getting RCE in HackTheBox Agile [Part 2]Playing with a (CTF) Smart Contract [Hackvent 2022 - Day 6]Automating Malicious Zip with Symlinks [HackTheBox Zipping]Day 16: The Floor Will Be Laba [AOC2023 Python]Bridge Repair [Day 7 - Advent of Code 2024 - Python]Day 14: Parabolic Reflector Dish [AOC2023 Python]Day 23 - Safe Cracking [Revival of Code 2023 - Advent of Code 2016]Oddly Even [HackTheBox - Coding Challenge]Free AI HTB Tutor
0xdf |

Day 6: Wait For It [AOC2023 Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER