screenager.dev

Algorithms

5 posts

0x55555555 is Actually Alien Code (And Other Power Problem Adventures)

What started as a simple Power of Four problem turned into me decoding hexadecimal mysteries and questioning everything I know about binary. Spoiler: bits are weirder than you think.

The Three Body Problem

Built a real-time three-body physics simulation with React hooks, RK4 integration, and some seriously beautiful orbital chaos. Warning: may cause existential crisis about the universe.

How ChatGPT and I Built an LRU Cache That Sped Up My App 10x

A journey of me and ChatGPT building a Least Recently Used (LRU) cache from scratch, with code examples, funny chat interactions, and visualizations that show how this clever algorithm saved my final project.

The Curious Case of Bloom Filters: When "Maybe" Is Good Enough

A deep dive into the elegant mathematics and practical applications of Bloom filters — probabilistic data structures that trade perfect accuracy for astonishing space efficiency.

Cat or not a cat with Logistic Regression: Part 1 - Understanding the Basics

A deep dive into binary classification using logistic regression, from fundamental concepts to practical implementation, with interactive examples and mathematical foundations