73 Must Know Terms for Coding Interviews
73 Must Know Terms for Coding Interviews
1 3 4
The Coding Interview
73 Must
Know
Terms For
Coding ∞
∞
$4 15 k
g $2
∞
2 kg
∞
Interviews $3 1 kg
∞
$10 4 kg
$10 1 kg
Monotonic non-increasing
Array where the end connects to the
Algorithm
Technique to find maximum sum subarray
problems
previous elements
elements after it
Term D e ini i n
f t o
Binary Tree Tree where each node has at most two children
B T Binary ear
S ( S ch
Binary tree where left child < parent < right child
Tree )
Co m e e Binary pl t
Every level filled except possibly last, which is
Se Ba an in
lf- l c g
Automatically maintains balance after
postorder, level-order)
v l
Low es mm t Co on
Deepest node that is an ancestor of two given
A n es r
c to (LCA) nodes
S eria i a i n l z t o /
Converting a tree to/from a string
D eseria i a i n l z t o representation
D iame er t Longest path between any two nodes in a tree
e e
L v l O d r er Processing tree nodes level by level
S e men Tree
g t Data structure for range ueries
q
Term Definition
Directed / Undirected Edges with/without direction
Connected
Subset of vertices where any two vertices are
Bipartite Graph
each set
DAG (Directed Acyclic
Topological Sort
(u,v), u comes before v. Works with DAGs
Graph representation where vertices store a list
Adjacency List
of their neighbouring vertices
Traversal strategies. Short for Breadth-First Search
BFS/DFS
and Depth-First Search
MST (Minimum
Tree connecting all vertices with minimum total
Term Definition
Memoization Cache technique to avoid redundant
calculations
Tabulation
subproblem results
State
solving the larger problem
Overlapping
When the same subproblems are solved
1 Dimensional
one previous state or a linear history, e.g. Fib
2 Dimensional
often two strings, two sequences, or two indices
Longest Common
Finding the longest subsequence common to
k unlimited times
pic ed
Term Definition
Min Heap / Max Heap Tree-based data structure where parent is
Term Definition
Subsets Set A is a subset to Set B if all of its elements are
found in Set B
Combinations Number of ways of selection and arrangement
Constraint solution.
Base Case Determines when a valid solution has been found
Term Definition
Amortized Analysis
of operations
Randomized
Algorithm that uses random numbers to decide
Execution Time
algorithm
Stable Sorting
A sorting algorithm that maintains the
Unstable Sorting
A sorting algorithm that does not maintain the
neetcode.io