Top 50
Topic roadmap
Updated weekly · Last refresh Nov 2

Top 50 optimization Interview Questions

The most frequently asked optimization questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
60companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
CodingStart here. 48 questions · ~1190 min
Container With Most WaterMedium
Practice
Recently asked

Find the maximum area between two vertical lines using an O(n) two-pointer scan.

ArraysArray ManipulationAlgorithmsMoengageOracleOOracle Health
Merge Overlapping IntervalsMedium
Practice
Recently asked

Sort intervals by start time, then merge every overlapping pair in linear time after sorting.

intervalsdata processingArraysGoogleExpedia GroupAdobe
Max Sum of Non-Adjacent ElementsEasy
Practice
Recently asked

Use dynamic programming to find the maximum sum of non-adjacent scores in a Quora Feed ranking array.

Dynamic ProgrammingArraysoptimizationQuoraBourntec SolutionsMetron
Data Structures Coding With OptimizationHard
Practice
Recently asked

Implement an LRU cache with constant-time get and put operations using a hash map and doubly linked list.

performanceData StructuresAlgorithmsSnowflakeGrouponRoku
Maximum Sum SubmatrixMedium
Practice
Recently asked

Find the maximum-sum contiguous submatrix and its coordinates using dimension reduction and Kadane's algorithm.

optimizationCloud Big Data TechnologiesGoogle
Sliding Window OptimizationMedium
Practice
Recently asked

Find the longest contiguous TikTok Shop product sequence containing at most k distinct products using a sliding window.

data processingSliding WindowoptimizationTikTok ShopAmazon Web Services
Reverse Number and Palindrome CheckMedium
Practice
Recently asked

Reverse an integer with arithmetic and determine whether the original number is a palindrome.

Basic AlgorithmsAlgorithmsedge casesDDCSUST
Fast Bit Reversal for 32-bit IntegersMedium
Practice
Recently asked

Reverse every bit in a 32-bit unsigned integer using fixed mask-and-shift operations.

Bit ManipulationMathcompiler optimizationApplied IntuitionGoogle
More Coding questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
2
More topics2 questions · ~50 min
More questions with a free account
Hands-on SQL practiceWrite and run real queries in the editor. 1 drill · ~10 min
The finish line: interview-readyComplete all 50 questions plus 1 hands-on drill to finish this plan.