Henok – Telegram
Henok
1.59K subscribers
828 photos
122 videos
165 files
167 links
Henok here. Just a messy collection of interesting things to improve or make your life worse! Reach me at @StoicallyAwake.
Download Telegram
Henok
Advent of Code 2025 - Day 1 Complete Just finished Day 1. The puzzle was about a safe with a dial. The dial has numbers 0 to 99 and starts at 50. We get instructions like "L68" (turn left 68 clicks) or "R48" (turn right 48 clicks). Part 1 Count how many…
Advent of Code 2025 – Day 2 Summary

The puzzle involved identifying invalid product IDs in a series of numerical ranges. Invalid IDs are defined as numbers formed by repeating a block of digits.

Part 1
An ID is invalid if a block repeats exactly twice. Examples include 11, 6464, and 123123. Instead of iterating over every number, I generated candidate IDs using a repeated-block formula and verified whether they fell within the specified ranges.


Part 2
The criteria expanded: an ID is now invalid if a block repeats two or more times. Examples include 12341234, 123123123, and 1111111. I checked all numbers in the ranges against possible block lengths to identify invalid IDs.


#AdventOfCode #AoC2025 #RustLang
🔥2
No AoC. No coding. No reading. No nothing

My pc just drowned in water💔
😭24👀6
Henok
No AoC. No coding. No reading. No nothing My pc just drowned in water💔
10 liters of water btw🙂
👀8😭2
This media is not supported in your browser
VIEW IN TELEGRAM
Accurate🤣
🤣9😭2😁1
Hmh🤔
👀5😁3
Forwarded from Jr's ThoughtLab
):
6
Wub Alem
Tewdros Tadesse
8
Anddd, he sacrifices the ROOOOK (in GothamChess voice)
❤‍🔥3😁3🔥2
Unfathomable
👀321
Henok
Photo
5👀5👍1