Day 20 - Firewall Rules [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 20 - Firewall Rules [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded August 2023 | Updated November 2026, 3 hours ago
Python Discord is doing an event called Revival of Code, where we work through the 2016 Advent of Code, one challenge every two days. The day 20 challenge, Firewall Rules, involves processing overlapping ranges to find gaps across a range of 4 billion numbers.

Repo for Advent of Code 2016 Solutions: gitlab.com/0xdf/aoc2016
Intro video for this event: youtube.com/watch?v=qEPpsS0StQI
Configuring VSCode to debug PyTest: youtube.com/watch?v=zL2YTdIj3R8
Real Python post with templates: realpython.com/python-advent-of-code

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

[00:00] Introduction
[00:16] Challenge part 1
[00:59] genday.sh / input
[01:22] Plot analysis
[05:22] Creating fixture / parse test
[07:28] Parsing input into list of int pairs
[08:32] Part 1 test
[09:06] Part 1 code
[10:55] Pass tests / solve part 1
[11:13] Challenge part 2
[11:20] Starting part 2 script
[11:46] Part 2 test
[12:28] Part 2 code
[13:44] Debugging bad test value
[14:17] Passing tests / solve part 2
[14:50] Combining part 1 and part 2 to run

#ctf #adventofcode #revivalofcode #python
Day 20 - Firewall Rules [Revival of Code 2023 - Advent of Code 2016]Day 5 - How About a Nice Game of Chess? [Revival of Code 2023 - Advent of Code 2016]Hacking the HackTheBox Code EditorRelic Maps [Forensics - Cyber Apocalypse 23 CTF]Guard Gallivant [Day 6 - Advent of Code 2024 - Python]RAM Run [Day 18 - Advent of Code 2024 - Python]Reindeer Maze [Day 16 - Advent of Code 2024 - Python]Malicious JavaScript Vjw0rm / STRRAT AnalysisCafeteria [AOC2025 Day 5]Malicious XLS Analysis // CVE-2017-11882 Still Lives!Day 24: Never Tell Me The Odds [AOC2023 Python]Dirty Frag Explained
0xdf |

Day 20 - Firewall Rules [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER