Top 50 Problem Solving Interview Questions
The most frequently asked Problem Solving questions across all roles and companies, ranked by real interview frequency. Updated daily.
Use a sliding window and hash map to find the longest substring with no repeated characters in O(n) time.
Prime VideoTTestMu AIFind the smallest missing positive integer in O(n) time and O(1) extra space using in-place array placement.
EricssonGGuidewire SoftwareUse sliding window with frequency counts to find the shortest substring containing all characters of a target string.
Super Micro Computer
Meta
SwiggyCalculate the hours needed to sell a ticket target at a constant rate using direct arithmetic.
Infosys
FinacleFind all unique triplets summing to zero using sorting and two pointers.
Costco Wholesale
Morgan StanleyFix a sliding-window implementation that returns the longest substring without repeated characters.
AshbyCount trailing zeros in 100! by summing the powers of five in its factorial factors.
KLACompute the exact sum of two signed integers using XOR, AND, shifts, and fixed-width two's-complement logic.
ReplySign up to see every question
Create a free account to unlock this list and practice real interview questions.
Compare normalized character signatures to determine whether each pair of strings is an anagram.
AdobeCalculate the sum of integers from 1 to 1,000,000 using PostgreSQL aggregation and filtering.
Virtu Financial