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.

Read more →


Featured Coding Puzzles

K Closest Points to Origin (Medium)

Given an array of $points$ in the format $points[i]=(x_i,y_i)$, return the $k$ points closest to the origin $(0,0)$ by Euclidean distance $\sqrt{(x_i - x_j)^2 + (y_i - y_j)^2}$.

View Puzzle →


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.

View Puzzle →

See all coding puzzles →


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.

View Pattern →


Prefix Sum

A prefix sum algorithm is used for various problems, usually those involving sums of sub-arrays.

View Pattern →

See all patterns →