17 Equations that Changed the World - Rewritten in JavaScript
ð° algorithms
A leap year check in three instructions
With the following code, we can check whether a year is a leap year with only about 3 CPU instructions.
weeklyfoo #86 / 2025-05-26Bloom Filters by Example
A Bloom filter is a data structure designed to tell you, rapidly and memory-efficiently, whether an element is present in a set.
weeklyfoo #92 / 2025-07-07Collaborative Text Editing without CRDTs or OT
Collaborative text editing is arguably the hardest feature to implement in a collaborative app. Even if you use a central server and a fully general solution to optimistic local updates (server reconciliation), text editing in particular requires fancy algorithms - specifically, the core of a text-editing CRDT or OT.
weeklyfoo #86 / 2025-05-26Hashed sorting is typically faster than hash tables
Problem statement: count the unique values in a large array of mostly-unique uint64s.
weeklyfoo #102 / 2025-09-15JavaScript Algorithms and Data Structures
Algorithms and data structures implemented in JavaScript with explanations and links to further readings
weeklyfoo #55 / 2024-10-21Load Balancing Algorithms Explained Visually
Back to school! If you forgot about (weighted) round robin and the other algorithms take a look at this article.
weeklyfoo #15 / 2024-01-14Many Hard Leetcode Problems are Easy Constraint Problems
Visualizing Algorithms