Optimization Interview Questions
29 interview questions in our bank cover Optimization, most of them Coding Questions. They average 3.2/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Optimization: Uber, Samsung, Capital One, Mistral AI, Google, and 15 more.
Practice these on the problems board →Companies that ask about Optimization
Question mix
- Coding Questions22
- ML Fundamentals & Algorithms5
- LLMs & Prompt Engineering1
- Deep Learning & Architectures1
Difficulty
- 2/5 — easy2
- 3/5 — medium20
- 4/5 — hard7
Optimization questions at Uber
Maximize Pipeline Throughput Within Budget
3/5A coding question about spending a fixed budget on extra copies of services that run in series, where the slowest service limits the whole chain. You must return the highest end-to-end rate you can afford, exactly, even when the result is far larger than 64-bit integers allow.
Coding QuestionsUberMinimize a Black-Box Convex Function
3/5Reported during Uber engineering interviews, this advanced algorithmic challenge focuses on locating the minimum value of an expensive, hidden convex function while minimizing the total number of evaluations. You must construct an efficient optimization routine using iterative probing techniques to rapidly narrow down the search space within a specified tolerance, with follow-ups extending into multidimensional discrete domains. The complete problem breakdown, mathematical proofs, and model solution require an active subscription.
Coding QuestionsUberChoose Shuttle Pickup Locations
3/5An optimization-design question about locating a fixed number of shuttle stops for geographically distributed riders. It tests objective definition, algorithmic guarantees, scaling analysis, deterministic behavior, and honest evaluation of solution quality.
ML Fundamentals & AlgorithmsUber
Optimization questions at Samsung
Reach The Point
4/5Navigate a dynamic coordinate plane with scaling step sizes in this algorithmic challenge frequently reported during Samsung interviews. The exercise tests your ability to apply breadth-first search or mathematical pruning to determine the shortest path to a target position under progressive constraints. You will need to optimize state spaces to handle large test cases within strict time limits. Access the complete problem specification and optimal model solution with a subscription.
Coding QuestionsSamsungFinding a Hidden Benchmark Value
3/5Solve this Samsung interview question involving two large numeric collections and an optimization goal to maximize a specific score disparity under strict performance limits. The puzzle challenges you to efficiently evaluate relationships between array elements and identify the optimal adjustment parameter that yields the greatest variance. It tests your numerical analysis skills and ability to optimize search spaces for large data volumes. Gain access to the complete problem instructions and an efficient model solution by upgrading your subscription.
Coding QuestionsSamsung
Optimization questions at Capital One
Wheat Harvest Case: Field Order, Harvest Day and Storage
3/5A business case question on farm operations: ordering work across fields, choosing a harvest date under weather risk, and deciding whether to store grain or sell it. It tests structured reasoning, expected-value arithmetic and sensitivity checks under time pressure.
ML Fundamentals & AlgorithmsCapital OneRepeated Leading-Nonzero Prefix Subtraction
2/5A coding question that asks for a function which takes an array of non-negative integers, applies a fixed rule that clears one entry at a time, and returns the total collected. Correct answers must respect where each step stops, treat zero and equal entries properly, and leave the caller's list unchanged.
Coding QuestionsCapital One
Optimization questions at Mistral AI
Max GPUs with At Most K Switches Between Clusters
3/5In this Mistral AI coding challenge, candidates must compute the optimal resource allocation across multiple resource pools over a defined temporal window while strictly limiting transition frequencies. This problem tests dynamic programming and state transition optimization under restrictive bounds. You will design an algorithm that balances cumulative yield against mobility penalties. Unlock the complete problem statement and verified solution by getting a subscription.
Coding QuestionsMistral AIMax GPUs with Unlimited Switching Across Clusters (Per Day)
2/5This Mistral AI interview question presents an optimization puzzle where you must track resource availability across multiple groups over a timeline with flexible transition rules. Candidates need to determine the optimal cumulative yield by making strategic daily choices without restrictive penalties for switching categories. The puzzle tests your ability to model dynamic programming or greedy choices effectively. The full problem statement and clean model solution are accessible only with a subscription.
Coding QuestionsMistral AI
Optimization questions at Google
Minimum Racks to Pack Machines (2D Bin Packing)
4/5This algorithmic problem, frequently featured in Google technical screens, challenges you to solve a multidimensional resource allocation puzzle akin to two-dimensional bin packing. You are tasked with determining the minimum number of hardware racks required to host a collection of machines, each consuming specific dual-resource capacities. The challenge evaluates your grasp of combinatorial optimization, greedy heuristics, and efficient search strategies. Access the comprehensive problem breakdown, test cases, and optimal algorithmic solution by obtaining a paid subscription.
Coding QuestionsGoogleMax Coins Collected by Jumping Over Tokens
4/5Encountered in Google interview processes, this algorithmic puzzle asks you to navigate an array with variable jump lengths to maximize your accumulated score, which includes both rewards and penalties. It tests your dynamic programming skills, pathfinding logic, and optimization strategies over sequential choices. Unlock the complete problem details and clean model solution by subscribing.
Coding QuestionsGoogle
More Optimization questions
Minimum Cost to Send People to Two Cities (Generalized to K)
3/5Send a group of people to two destinations at minimum total cost while filling each destination exactly half full. This Bloomberg question has a neat greedy answer driven by the cost difference per person, and then a follow-up that generalises to several destinations and breaks the greedy argument. You will sort by the difference, assign the clear cases first, and explain why the many-destination version needs a different technique. The full problem and the model solution require a subscription.
Coding QuestionsBloombergFit a 1D Two-Segment Piecewise-Constant Regression (Minimize MSE)
3/5Encountered in a NewsBreak interview, this machine learning fundamentals question focuses on fitting a simple two-segment constant function to one-dimensional data. You will explore how to locate an optimal split threshold alongside constant values for each segment to minimize overall mean squared error. The task tests your understanding of regression analysis, optimization techniques, and error minimization. Access the full problem details and model solution by subscribing.
ML Fundamentals & AlgorithmsNewsBreakLinear Regression via Gradient Descent (MSE)
3/5A machine learning coding question on fitting a linear regression model from scratch in plain Python by minimising squared error. It checks the exact update rule, the stopping rule and edge cases, and ends with a short discussion of learning-rate choice and convergence problems.
Coding QuestionsDatabricksML Fundamentals, Transformer & Regularization
3/5Prepare for rapid-fire machine learning evaluations with this technical screening overview inspired by Snapchat. This module covers essential theoretical concepts, including generalization trade-offs, regularization mechanisms, normalization techniques, and architectural nuances of modern attention-based models. It assesses your deep conceptual understanding and your ability to articulate complex algorithmic behaviors under pressure during live interviews. Gain access to the full interview preparation guide and detailed technical explanations with an active subscription.
ML Fundamentals & AlgorithmsSnapchatSelecting Stocks
3/5Choose at most one share of each company within a fixed budget to maximise the predicted year-end gain. This Snowflake question is a zero-one knapsack with a profit that can be negative, and the detail that catches people is sweeping the budget in the right direction so each item is used once. You will define the state over remaining funds, skip items that cannot improve the result, and handle a budget too small for anything. A subscription unlocks the complete problem and the model solution.
Coding QuestionsSnowflakeChoose Checkout Coupons under a Loyalty-Point Budget to Maximize Savings
4/5A coding question on deciding which store coupons to activate when each one costs loyalty points and only a fixed allowance of points is available per purchase. The aim is the largest total saving, where savings follow stacking rules, a per-line limit and cent rounding.
Coding QuestionsPalantirTwo-ball Drop Problem
3/5This classic interview puzzle, featured by Talroo, challenges you to find the most efficient strategy for testing durability limits using a limited number of identical testing objects. The scenario evaluates your logical reasoning, worst-case optimization mindset, and mathematical problem-solving skills rather than heavy programming. To view the complete analytical breakdown and the mathematically sound model solution, a paid subscription is required.
Coding QuestionsTalrooMax Profit from Cutting Rods into Equal Sale Length
3/5This intriguing optimization task, featured in Anduril coding rounds, asks you to determine the most lucrative strategy for chopping raw materials into uniform segments while factoring in processing fees and leftover waste. It tests your mathematical modeling, greedy choice evaluation, and ability to maximize financial outcomes under realistic constraints. The problem requires careful consideration of scaling values and edge cases. Gain full access to the strategic walkthrough and comprehensive code implementation through a paid subscription.
Coding QuestionsAndurilAllocate Wells for Fair Distribution
4/5Dive into this resource allocation puzzle encountered in software engineering interviews at Wells Fargo. You are tasked with dividing circular array elements among multiple recipients in a contiguous manner, striving for an equitable division that narrows the gap between maximum and minimum shares. This question examines your proficiency with circular data structures, prefix sums, and optimization techniques. Reviewing the complete problem statement and acquiring the optimal solution demands an active subscription.
Coding QuestionsWells FargoMinimize GPU Padding When Batching Documents
3/5A coding question on grouping variable-length documents into a fixed number of GPU batches so that as little padding as possible is wasted. It tests modelling a cost precisely, arguing which groupings need to be considered, and meeting a size bound.
Coding QuestionsAmazonDebugging, Optimizing, and Multithreading Safety for MyClass in C++
3/5This C++ debugging and optimization challenge, reported from Tenstorrent, requires you to inspect a flawed class implementation to eliminate bugs, reduce memory overhead, and enforce thread safety. You will identify hidden defects, apply modern C++ optimization techniques, and design synchronization mechanisms to protect shared state in concurrent execution environments. This problem evaluates your systems programming prowess and concurrent design skills. Review the full codebase, optimization strategies, and reference solution by subscribing.
Coding QuestionsTenstorrentK-Means vs Gaussian Mixture Models
3/5A machine learning fundamentals question on two classic ways to group unlabelled data, one with hard memberships and one probabilistic. The candidate derives the update steps of each, explains why they converge, relates the two, and discusses when each one breaks down.
ML Fundamentals & AlgorithmsMetaProperty Combination for Group Size
3/5As a classic onsite interview question from Airbnb, this challenge asks you to select an optimal subset of lodging options that meets a collective visitor capacity requirement. The objective centers on minimizing over-provisioning space while favoring selections composed of fewer individual units when resource totals tie. This task assesses advanced combinatorial search techniques, optimization heuristics, and custom sorting logic. Review the complete scenario and comprehensive model implementation by subscribing to our platform.
Coding QuestionsAirbnbFactory Minimum-Cost Path Across Stages
3/5Highlighted as a notable Stripe interview question, this optimization challenge asks you to find the minimum cost path across sequential production stages involving both establishment expenses and transit distances. It tests your capability to apply dynamic programming principles, manage multi-variable state transitions, and handle structural modifications like skipping a stage. You will need to design an efficient algorithm to navigate the cost tradeoffs effectively. Gain full access to the complete problem text, detailed constraints, and the verified model solution with a paid subscription.
Coding QuestionsStripeOptimal Crop Selection for Maximum Profit
3/5This reported interview question from Block challenges candidates to solve a resource allocation puzzle involving agricultural investments. Given various produce options with distinct acquisition expenses, revenue yields, and growth durations, along with financial and temporal constraints, you must figure out the optimal strategy to maximize financial returns. This exercise tests your ability to design robust algorithms for knapsack-style optimization under tight limits. Access to the complete problem breakdown and verified solution requires a subscription.
Coding QuestionsBlockWhen Does min x'Qx + c'x Have a Finite Minimum
4/5Explore this advanced mathematical optimization problem featured in quantitative interviews at Citadel, focusing on unconstrained quadratic functions over real vector spaces. You will investigate the exact algebraic conditions required for such objective functions to yield a bounded global minimum rather than drifting toward negative infinity. The discussion covers eigenvalue properties and subspace relationships that determine objective feasibility. To examine the rigorous proof and complete mathematical evaluation, a subscription is required.
Coding QuestionsCitadelCompute the Distribution of LLM Decoding Stopping Time and Build a Strategy Against Adversaries
4/5Model when a language model stops generating, then play against an adversary who gets to choose the worst stopping behaviour for you. This two-part OpenAI question starts with the probability distribution over decoding length and expected token count, and then turns into a minimax decision problem solved with dynamic programming. You will connect a per-step stop probability to a full distribution, handle the forced stop at the length cap, and reason about optimal play on both sides. Access to the full problem and the complete derivation requires a subscription.
LLMs & Prompt EngineeringOpenAIDeep Learning Fundamentals: Optimization, Drift, Calibration
3/5This reported NVIDIA interview exploration tests core deep learning principles, focusing on optimization techniques, gradient descent dynamics, model calibration, and handling distribution shifts. Candidates are evaluated on their theoretical understanding of objective landscapes, generalization trade-offs, and practical machine learning quality considerations. Reviewing these fundamentals helps build robust intuition for research and engineering screens. Access to the complete question breakdown and expert answers requires an active subscription.
Deep Learning & ArchitecturesNVIDIA
Studied alongside
Optimization interview FAQ
- How many Optimization interview questions are there?
- 29 reported questions, mostly Coding Questions.
- Which companies ask Optimization questions?
- Uber (3), Samsung (2), Capital One (2), Mistral AI (2), Google (2), Bloomberg (1), NewsBreak (1), Databricks (1).
- How hard are Optimization questions?
- They average 3.2 out of 5: 2 at 2/5, 20 at 3/5, 7 at 4/5.