Skip to content

📰 algorithms

17 Equations that Changed the World - Rewritten in JavaScript

&lt3

weeklyfoo #22 / 2024-03-04
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-26
algorithms

Collaborative 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-26
algorithms

JavaScript Algorithms and Data Structures

Algorithms and data structures implemented in JavaScript with explanations and links to further readings

weeklyfoo #55 / 2024-10-21
javascriptalgorithms

Load 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-14
loadbalanceralgorithms

Visualizing Algorithms

Old but gold!

weeklyfoo #29 / 2024-04-22
algorithms