Skip to content

Instantly share code, notes, and snippets.

View theplaintextengineer's full-sized avatar

The Plaintext Engineer theplaintextengineer

View GitHub Profile
@theplaintextengineer
theplaintextengineer / 01_find_missing_log_id.py
Created December 30, 2025 10:06
THE CORRUPTED TRADING SEQUENCE
"""
PROBLEM: THE CORRUPTED TRADING SEQUENCE
CONTEXT:
You are the Lead Developer for a High-Frequency Trading (HFT) platform.
The system processes 1,000,000 transactions/second. Each transaction
is logged with a unique, strictly increasing ID.
THE INCIDENT:
A hardware glitch caused exactly ONE transaction ID to be skipped.