Day 3 - Squares With Three Sides [Revival of Code 2023 - Advent of Code 2016] @0xdf
Day 3 - Squares With Three Sides [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 3 challenge, Squares with Three Sides, involves parsing numbers three at a time, looking to see if they could be the lengths of sides of a triangle. In part two, it just changes how I grab the three numbers, and I get to use a python trick I explained in a video last December during the 2022 Advent of Code.

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
Taking Groups of n video: youtube.com/watch?v=FYwNGpubEhA

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

[00:00] Introduction
[00:46] Challenge Part 1
[01:30] genday.sh script
[01:50] Input analysis
[02:02] Part 1 tests
[03:08] parse function
[04:40] Testing parse function
[05:33] Solving part 1 with filter
[07:45] Solving part 1 with loop
[09:30] Debugging failing on puzzle input
[10:46] Updating tests with whitespace issue
[11:02] Fixing whitespace issue, solving part 1
[12:56] Challenge part 2
[13:42] Taking groups of n
[17:49] Adding test for part 2
[19:22] Debugging fix
[20:11] Solving part 2

#ctf #adventofcode #revivalofcode #python
Day 3 - Squares With Three Sides [Revival of Code 2023 - Advent of Code 2016]awk Injection via JWT Forgery [HackTheBox - Awkward]SpeedNet - HackTheSystem CTFsudo chroot Tech Details [CVE-2025-32463]Threat Index [HackTheBox - Coding Challenge]Day 23: Long Walk [AOC2023 Python]Day 8 - Two-Factor Authentication [Revival of Code 2023 - Advent of Code 2016]Reversing and Brute-Forcing TOPT Browser Plugin Export [HackTheBox Coder]Web Assembly Reversing Challenge [CodeLocked - Hacky Easter 2023]Ceres Search [Day 4 - Advent of Code 2024 - Python]JinjaCare - HackTheSystem CTFGameover(lay) Exploit Explained
0xdf |

Day 3 - Squares With Three Sides [Revival of Code 2023 - Advent of Code 2016]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER