Engineering
Tail Amplification
Tail amplification is a statistical phenomenon observed in process or operation fanout in software and other systems. A single request that fans out to multiple requests to downstream services amplifies the probability of sampling a tail probability that is disproportionate to the sampling rate.
Featured Coding Puzzles
Distinct Subsequences (Medium)
Given a string $s$ and a string $t$, find the number of distinct subsequences of $s$ that equal $t$. The subsequences need not be contiguous.
Magic Candy Bags (Medium)
You are given an array of magic bags containing different numbers of candies. It takes you 1 minute to eat a full bag of candies regardless of the number of candies in the bag. Once you finish eating the candies, the bag is magically refilled so that if the bag initially contained x candies then at the end of the minute, the bag is refilled to contain floor(x / 2) candies. Determine how many candies you can eat in $k$ minutes.
Featured Algorithm Patterns
Sliding Window Technique
The sliding window technique is a way to solve certain problems that require inspecting some iterable over a fixed or variable length.
Depth-First Search
A depth-first search is an algorithm wherein a data structure is modeled into a tree and is traversed down toward the leaves of the tree first before continuing to other branches, in search of a target element. A breadth-first search, by comparison, traverses each level of the tree before continuing to the next level. In particular, the siblings of a leaf are traversed before the cousins of a leaf.

