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 AIShow which integers fit a list and a fixed-width array while preserving values rejected by the array.
Verisk AnalyticsLLSEG (London Stock Exchange Group)
Sopra SteriaFind the longest substring without repeated characters using a sliding window and hash map.
Syntes
Johnson & JohnsonJJohnsonUse sliding window with frequency counts to find the shortest substring containing all characters of a target string.
Super Micro Computer
Swiggy
MetaFind the smallest missing positive integer in O(n) time and O(1) extra space using in-place array placement.
EricssonCChicagotradingGGuidewire SoftwareCalculate the hours needed to sell a ticket target at a constant rate using direct arithmetic.
Infosys
FinacleAnalyze a binary tree's height and balance using postorder depth-first traversal.
Quora
CompassSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Find each user's longest consecutive login streak by deduplicating login dates and identifying gaps between days.
Didi Chuxing
ByteDance