| Random Link ¯\_(ツ)_/¯ | ||
| Jun 7, 2026 | » | AsyncIO in Python
3 min; updated Jun 7, 2026
The Event LoopThe event loop contains a collection of jobs to be run. Some jobs are added
by application code, and others indirectly by |
| Jun 6, 2026 | » | Of [Non]Overlapping Intervals
3 min; updated Jun 6, 2026
Merge Overlapping IntervalsProblem Statement: Merge Overlapping IntervalsGiven an integer array Solution: Sort by Start Time and then Linear ScanLike
Minimum Size Subarray Sum
, contiguity hints at a linear scan being useful. If we sort |
| Jun 2, 2026 | » | Thread-Based Parallelism in Python
7 min; updated Jun 2, 2026
In Chromium, why wasn’t explicit threading a thing? Data structures are usually
not thread-safe. There were guardrails for scenarios like checking IntroductionThreads are smaller units of a process that allow executing tasks in parallel, sharing memory space. Threads are particularly useful for I/O bound tasks, where much of the time is spent waiting for external resources. ... |
| Aug 23, 2025 | » | AoC 2024 Day 07: Bridge Repair
6 min; updated Aug 23, 2025
ParsingEach line represents a single equation, e.g., Part One needs to make a decision based on each line independently. Parsing each line into a data structure and yielding that should suffice. Part OneUsing only add and multiply, evaluated left-to-right (not according to math precedence rules), determine which equations could possibly be true. For example, \(292 = ((11 + 6) \times 16) + 20\). Of the equations that could possibly be true, what is the sum of their results? ... |
| Feb 19, 2023 | » | 023. Non-Abundant Sums
9 min; updated Feb 19, 2023
#23 Non-abundant sums - Project Euler.
Problem StatementA perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of \(28\) would be \(1 + 2 + 4 + 7 + 14 = 28\), which means that \(28\) is a perfect number. ... |
| Mar 16, 2022 | » | AoC 2021 Day 09: Smoke Basin
13 min; updated Mar 16, 2022
massiv; Fusion; Box vs. Unboxed; Connected Components; Data.Set; Monadic map |
Only covers the high level building blocks of
asyncio. has a second section on howasyncioandawaitinternally work.