Optiver Coding & Algorithms Interview Questions

Optiver Coding & Algorithms interview questions test more than rote algorithm recall; they probe how you think under performance constraints and how you communicate trade-offs. Expect timed online assessments and live coding sessions that resemble collaborative problem solving rather than isolated puzzles. Interviewers typically evaluate your ability to choose appropriate data structures, reason about time and space complexity, write clean, correct code in a primary language (often C++, Java, or Python), and handle edge cases and performance considerations that matter in low‑latency trading systems. For effective interview preparation, focus on fundamentals—arrays, trees, graphs, hashing, sorting, windows and two‑pointer techniques, and complexity analysis—while practicing timed problems and explaining your choices aloud. Reinforce language fluency and standard library knowledge, and revisit concurrency, memory layout, and I/O tradeoffs when relevant. During practice, simulate the live interview: ask clarifying questions, outline an approach, iterate on correctness, and discuss optimizations. This approach helps you demonstrate practical engineering judgment as well as coding proficiency.

38 Questions 1 Company06.26.2026
Showing 20 results
Role
Optiver logo
Optiver
Medium
Software Engineer Locked

Maintain Price Levels For A Single-Symbol Order Book

Review a single-symbol order book implementation prompt with insert, modify, cancel, and price-level lookup callbacks. The interview topic focuses on ...

Coding & Algorithms
83
4
802 people solved
Jun 26, 2026
Optiver logo
Optiver
Medium
Software Engineer

Design a balloon stability tracker

Implement a class BalloonFestival to manage hot-air balloons and wind fields over time, and to report rewarded balloons at inspection times. Methods a...

Coding & Algorithms
68
0
758 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Software Engineer Locked

Calculate Days Between Arbitrary Gregorian Dates

Calculate the absolute number of days between arbitrary valid Gregorian dates without enumerating each day or relying on a limited date library. Accou...

Coding & Algorithms
1
0
19 people solved
May 29, 2026
Optiver logo
Optiver
Medium
Software Engineer

Explain OS processes, threads, and memory

Explain OS processes, threads, and memory Explain core operating system concepts: processes vs threads, context switching, and scheduling (preemptive ...

Coding & Algorithms
31
1
323 people solved
Jul 17, 2025
Optiver logo
Optiver
Hard
Software Engineer

Detect Currency Arbitrage After a Cycle Fee

Detect Currency Arbitrage After a Cycle Fee You are given a matrix of positive currency exchange rates, where rates[i][j] units of currency j are rece...

Coding & Algorithms
0
0
3 people solved
May 3, 2026
Optiver logo
Optiver
Hard
Software Engineer

Count Bounded Buy-and-Sell Sequences

Count Bounded Buy-and-Sell Sequences You start with k shares. On each transaction day, you either buy one share or sell one share, but holdings may ne...

Coding & Algorithms
0
0
3 people solved
May 3, 2026
Optiver logo
Optiver
Medium
Software Engineer

Build and Validate a Binary Tree from Parent-Child Pairs

Build and Validate a Binary Tree from Parent-Child Pairs You are given a single input string that is supposed to describe a binary tree as a sequence ...

Coding & Algorithms
1
0
16 people solved
Apr 21, 2026
Optiver logo
Optiver
Medium
Software Engineer

Implement a Level-Aware Expiring Inventory Store

Implement an inventory store with levels, weights, timestamps, and expiration. store adds an item. retrieve(timestamp) returns and removes the highest...

Coding & Algorithms
2
0
18 people solved
Feb 3, 2026
Optiver logo
Optiver
Medium
Software Engineer

Thread-Safe Stock Inventory: Buy and Sell Without Overselling

Thread-Safe Stock Inventory: Buy and Sell Without Overselling You are implementing the inventory-management core of a small brokerage service. The ser...

Coding & Algorithms
2
0
22 people solved
Apr 19, 2026
Optiver logo
Optiver
Hard
Software Engineer

Count Ordered Sequences That Sum to a Target

Count Ordered Sequences That Sum to a Target Given a positive target n and a set of unique positive order sizes, count the distinct ordered sequences ...

Coding & Algorithms
0
0
2 people solved
Apr 28, 2026
Optiver logo
Optiver
Medium
Software Engineer

Compare common data structures and uses

Compare common data structures and uses Compare common data structures and select appropriate ones for specific tasks. For arrays, linked lists, stack...

Coding & Algorithms
23
0
213 people solved
Jul 17, 2025
Optiver logo
Optiver
Medium
Data Scientist

Optimize switching puzzle solution

Consider a switching puzzle on an m×n grid of lights where toggling a cell flips its state and that of its orthogonal neighbors (Lights Out variant). ...

Coding & Algorithms
9
0
172 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Data Scientist

Compare two programs for equivalence

You are given two short programs (or functions) that process an integer array A (|A| ≤ 10^ 5). Determine whether they are functionally equivalent for ...

Coding & Algorithms
10
0
115 people solved
Sep 6, 2025
Optiver logo
Optiver
Hard
Software EngineerIntern

Optimize flight and cargo bookings for profit

OptiCargo: make the booking algorithm profitable You are given two streams/lists: - Flights you may attempt to book. Each flight has: - flight_id ...

Coding & Algorithms
150
0
1205 people solved
Dec 5, 2025
Optiver logo
Optiver
Medium
Software Engineer

Estimate expected comparisons in a BST

Estimate expected comparisons in a BST In a particular binary search tree, finding node A takes 1 comparison and finding node D takes 3 comparisons. W...

Coding & Algorithms
17
0
140 people solved
Jul 17, 2025
Optiver logo
Optiver
Medium
Software Engineer

Implement price-based order matcher

Design and implement a price-based order matcher for unit-sized orders. You are given an array orders where each element is [type, price]: type = 1 de...

Coding & Algorithms
39
0
392 people solved
Aug 13, 2025
Optiver logo
Optiver
Medium
Data Scientist

Minimize moves to transform floor layouts

You are given an initial arrangement of apartments across Floors 1–4 and a target arrangement. In one move you may reposition a single apartment to a ...

Coding & Algorithms
4
0
80 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Data Scientist

Devise sequence-rule detection strategy

You are given an integer sequence with 2 ≤ n ≤ 50 terms, possibly following rules such as arithmetic/geometric progressions, alternating patterns, pol...

Coding & Algorithms
8
0
84 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Software Engineer

Design a queue and analyze tradeoffs

Design a FIFO queue data structure that supports enqueue, dequeue, peek, and isEmpty. Compare implementations using a singly linked list, a dynamic ar...

Coding & Algorithms
39
0
327 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Software Engineer

Design a Balloon Festival Simulator

Implement a class BalloonFestival with the following API and rules. Goal Track hot air balloons (yours and competitors), evolving wind fields, and bal...

Coding & Algorithms
32
0
375 people solved
Jul 27, 2025

Frequently Asked Questions

How difficult are Optiver Coding & Algorithms interview questions?
Optiver Coding & Algorithms questions are typically medium to hard and emphasize clean, efficient solutions under time pressure. Interviewers often evaluate algorithmic correctness, edge-case handling, and asymptotic complexity rather than clever tricks alone. Expect problems that reward careful data structure choice and attention to constant factors, since trading systems have tight performance constraints. You may also face tasks that require designing robust input validation or handling malformed data. Preparing to explain design tradeoffs and thought process is as important as producing a working solution during the timed interview.
What is the typical interview process at Optiver and where do Coding & Algorithms questions appear?
Coding and algorithm problems usually appear early and repeatedly in the Optiver interview loop, often as an online assessment followed by one or more live coding interviews. The online stage may be a timed programming test; successful candidates then face technical interviews focused on data structures, algorithms, and implementation. Coding questions may also be embedded in longer onsite or virtual rounds alongside system design and behavioral discussions. Interviewers commonly ask candidates to code on a shared editor, run through test cases, and explain complexity and correctness as they iterate toward a final solution.
How should I structure a preparation timeline for Optiver Coding & Algorithms interviews?
Build a structured plan over several weeks that balances fundamentals, targeted practice, and mock interviews. Start by refreshing core data structures and complexity analysis, then solve progressively harder problems in arrays, trees, graphs, dynamic programming, and heaps. Midway, add timed assessments to simulate the online test environment and focus on writing correct, tested code quickly. In the final weeks, do mock interviews with a partner or coach, review common pitfalls, and rehearse clear explanations of tradeoffs. Consistent, focused practice with post-mortem reviews yields better gains than random problem solving.
Which subtopics should I focus on for Coding & Algorithms interviews at Optiver?
Prioritize data structures and algorithmic patterns that commonly appear under performance constraints: arrays and strings, hash maps, heaps, trees and graph traversals, dynamic programming, sorting, and greedy strategies. Be fluent with complexity tradeoffs and memory usage, and comfortable implementing common graph algorithms and union-find. Practice handling edge cases, nulls, integer overflow, and large inputs. Language-specific proficiency in C++, Java, or Python is important, including standard library use and idiomatic patterns that produce concise, efficient solutions under time pressure.
What are standout tips and common pitfalls for succeeding in Optiver Coding & Algorithms interviews?
Standout tips include asking clarifying questions upfront, outlining your approach before coding, and iterating from a simple correct solution to optimizations. Verbally justify data structure choices and complexity tradeoffs as you go. Test your code on representative edge cases and explain failure modes. Common pitfalls are diving into code without confirming constraints, ignoring performance implications, overlooking integer boundaries, and failing to communicate when stuck. Recruiters also value readable, well-structured code, so avoid one-line hacks that compromise clarity even if they appear clever.

Explore more Optiver Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Other categories at Optiver
Coding & Algorithms questions at other companies
Browse all