Category: algorithms
Teaching Kids Programming: Videos on Data Structures and Algorithms A stack-based solution for LeetCode 255, Verify Preorder Sequence in Binary Search Tree. The key idea is to track a …
Teaching Kids Programming: Videos on Data Structures and Algorithms Introduction to Combinatorial Mathematics (2): Catalan Numbers Catalan numbers are one of the most important sequences in combinatorics. They appear …
Understanding std::transform_reduce in Modern C++ std::transform_reduce is a powerful C++17 algorithm that combines the functionality of transform and reduce (or accumulate) in a single pass. It allows you to …
Implementing a Spinlock Using the Atomic TAS Instruction Implementing a Spinlock Using the Atomic TAS Instruction Building a Spinlock from Scratch with Atomic TAS Implementing a Minimal Mutex Using …
Teaching Kids Programming: Videos on Data Structures and Algorithms Introduction to Math Combination Combinations count the ways to choose items when order does not matter. This guide builds intuition …