Top 50 optimization Interview Questions
The most frequently asked optimization questions across all roles and companies, ranked by real interview frequency. Updated daily.
Use dynamic programming to find the maximum sum of non-adjacent scores in a Quora Feed ranking array.
Quora
Bourntec Solutions
MetronSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Find the maximum area between two vertical lines using an O(n) two-pointer scan.
OracleFind the longest zero-sum subarray using prefix sums and a hash map in linear time.
GoogleFind the smallest missing positive integer in O(n) time and O(1) extra space using in-place array positioning.
Dsv Air & Sea
NetskopeFind the longest contiguous TikTok Shop product sequence containing at most k distinct products using a sliding window.
TikTok Shop
Amazon Web ServicesReverse an integer with arithmetic and determine whether the original number is a palindrome.
USTCount set bits in an Intel Atom x6000E register using constant-time parallel bit manipulation.
Intel
10x Genomics