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

Decrypt a String (Easy)

A string s was encrypted with the following algorithm: Create an empty string r.

View Puzzle →


Sums from Weighted Words (Medium)

Given a dictionary of words pointing to positive numbers and a number $n$, return all combinations of the words that add up to the number $n$.

View Puzzle →

See all coding puzzles →


Featured Algorithm Patterns

Heap

A heap is a tree-like data structure that satisfies the heap property, which states that for a min (max) heap, for every element $E$, if $P$ is a parent of the element, then $P$ is less (greater) than $E$.

View Pattern →


Quick Select

Quick select is an adaptation of the quicksort algorithm to find the top or bottom $k$ elements in a collection. The algorithm entails doing a quicksort until we randomly find a pivot that sits at index $k$, which indicates that all items before that item are less than it and all items after that item are greater than it.

View Pattern →

See all patterns →