Top 50 Matrix Interview Questions
The most frequently asked Matrix questions across all roles and companies, ranked by real interview frequency. Updated daily.
Use DFS on a matrix-as-graph to count connected components of land cells.
YouTube
NianticReturn every matrix value in clockwise spiral order using shrinking boundaries.
Broadridge Financial Solutions
RedfinCompute symmetric Chamfer distance between two 2D point sets efficiently using a k-d tree.
Amazon DSP
Amazon Development Center U.S.
AmazonCompute 3D IoU for two axis-aligned bounding boxes by finding overlap volume and dividing by union volume.
Lucid Motors
NFLCheck whether every anti-diagonal in a matrix contains the same value.
Deepmind
Google DeepMindRotate an n x n matrix 90 degrees clockwise in place using transpose and row reversal.
Capital One
Re:Build Manufacturing
22nd Century TechnologiesImplement a one-hidden-layer neural network with forward propagation and batch gradient descent for binary classification.
Bell
ClickUp
OneMagnifyUse dynamic programming and monotonic stacks to find the largest rectangle of 1s in a binary grid.
Microsoft
Oscar Health
Oscar InsuranceSign up to see every question
Create a free account to unlock this list and practice real interview questions.