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

Longest Increasing Subsequence (Medium)

Given an array of numbers, find the longest strictly increasing subsequence in the array. The subsequence need not be contiguous.

View Puzzle →


Find First and Last Position of an Element in a Sorted Array (Medium)

Given an array of numbers sorted in non-decreasing order, find the first and last position of a target value in the array. If the target is not found, return [-1, -1].

View Puzzle →

See all coding puzzles →


Featured Algorithm Patterns

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.

View Pattern →


Trie

A trie is a data structure that stores words in a tree structure, with an empty root node and every subsequent node containing a character that together with its parents forms part or all of a word. Each trie node contains a value indicating whether the node is a terminal character in a word.

View Pattern →

See all patterns →