Top 50 Algorithms Interview Questions
The most frequently asked Algorithms questions across all roles and companies, ranked by real interview frequency. Updated daily.
Implement binary search to find a target value in a sorted array in O(log n) time.
HHAeXchange
EDF Renewables
SRS ConsultingUse a two-pointer string scan to determine whether a string reads the same forward and backward.
Dsv Air & Sea
Lucid Motors
AfterqueryImplement a linear array-sum solution and explain why its time complexity is O(n).
Arch Capital
Capella Space
ZyngaSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Detect whether a linked list contains a cycle using Floyd's tortoise-and-hare algorithm in O(n) time and O(1) space.
Lumenalta
J.P. MorganReverse a singly linked list in place by rewiring next pointers in one pass.
General AtomicsKKotak
Kotak Mahindra BankOptimize repeated range-sum computations with prefix sums instead of rescanning application workload data.
University of Florida
Cybertrend Engineering
Diamond FoundryImplement a modular top-k frequency algorithm that scales with input size and preserves deterministic tie ordering.
TotalEnergies
Johnson & Johnson
L3Harris TechnologiesCompute cosine similarity for equal-length high-dimensional vectors using dot products and Euclidean norms.
Commonwealth Bank of AustraliaLLogicFFever