Day 2 - Bathroom Security [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 2 - Bathroom Security [Revival of Code 2023 - Advent of Code 2016]  @0xdf
Uploaded June 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 2 challenge, Bathroom Security, involves following directions around a digital keypad to figure out what buttons to push. The trick is to figure out when you're stepping off the edge of the keypad and do nothing instead.

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

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

[00:00] Introduction
[00:25] Challenge Part 1
[01:24] genday.sh script
[01:46] Input analysis
[02:10] Part 1 tests
[04:02] Quick overview of stub
[04:30] parse function
[05:03] Part 1 strategy
[05:43] Creating map from direction to move
[06:40] Looping over input
[09:02] Debugging failing test
[09:51] Solving part 1
[10:08] Challenge part 2
[11:04] Part 2 tests
[11:50] Part 2 strategy
[13:52] part2 function
[15:14] Creating maps
[17:06] Conclusion

#ctf #adventofcode #revivalofcode #python
Day 2 - Bathroom Security [Revival of Code 2023 - Advent of Code 2016]Splunk Docker Container for CloudTrail AnalysisRestroom Redoubt [Day 14 - Advent of Code 2024 - Python]PHP Filter Injection: LFI2RCE ExplainedDay 22 - Grid Computing [Revival of Code 2023 - Advent of Code 2016]CVE-2022-23935 Analysis: Command Injection in Exiftool [HackTheBox - Investigation]Day 18 - Like a Rogue [Revival of Code 2023 - Advent of Code 2016]Python Flask Jinja2 SSTI Payload AnalysisDay 17 - Two Steps Forward [Revival of Code 2023 - Advent of Code 2016]Wearhouse Woes [Day 15 - Advent of Code 2024 - Python]Day 25: Snowverload [AOC2023 Python]Day 5: If You Give A Seed A Fertilizer [AOC2023 Python]
0xdf |

Day 2 - Bathroom Security [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER