Top 50 time complexity Interview Questions
The most frequently asked time complexity questions across all roles and companies, ranked by real interview frequency. Updated weekly.
Explain how BST search works by comparing the target at each node and analyze best, average, and worst-case time complexity.
Raymond James Financial Services
Radiance TechnologiesTThe CardExplain why merge sort runs in O(n log n) time, uses O(n) extra space, and when it is a good choice.
NVIDIA
BNY
ToyotaExplain Big O notation and how to analyze the time and space complexity of recursive algorithms.
Stackadapt
Prudential Ins Co Of America InFind the first character in a string that appears exactly once using a hash table in linear time.
McKinsey &Use DFS and hash-based serialization to find duplicate subtrees, then discuss complexity improvements and deduplication design.
StackadaptSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Tests communication and influence through a concrete example of translating technical depth into business-aligned action.
Stackadapt
Draper LabsOpen any question for its full solution and discussion.
Browse all questions →