DRW Coding Interview

What the round is, what DRW asks, and how to prepare, from candidate reports and the QuantVault practice set.

Stage 5 of 660 min7 practice problemsSoftware EngineerUpdated October 20, 2026

The DRW Coding interview is stage 5 of 6 in the DRW interview process, after the Trading Intuition & Market Making. Format: 60 min - algorithms. For engineering roles: clean algorithm and data-structure problems (and often C++).

Preparing for this round? Practice the 7 questions mapped to the DRW Coding, with worked solutions. A free account saves your progress.

Save a 4-week DRW plan to your dashboard: week by week through the rounds, with your progress.

Also see the full DRW interview process and the DRW interview questions.

What the Coding tests

State complexity and optimize.

QuantVault maps 7 practice problems to this round. By topic, the biggest groups are coding (6), market microstructure (1); by difficulty, 0 easy, 2 medium and 5 hard. 5 of them were reported by candidates who interviewed at DRW, most recently in Jul 2026.

Who takes this round: Software Engineer candidates. See the full DRW process and who takes each round.

How to prepare for the Coding

  • State complexity first, then optimize.
  • Data-structure design -- streaming medians, matching engines.
  • Know your language internals (C++ if applicable).

Further reading: C++ and low-latency interview questions · How quant superdays work · Behavioral questions at trading firms · Market-making game interview guide.

Question types in this round

The 2 largest question types in the DRW Coding practice set; across them the most common sub-topics are data structures, complexity analysis, sorting and searching. The questions themselves, with worked solutions, are in the round practice.

Coding6 in this round

How coding questions work →

Market Microstructure1 in this round

How market microstructure questions work →

Illustrative worked example

An original example of the most common question type in this round, written by QuantVault. It shows the reasoning the round rewards; it is not a question DRW asked.

Illustrative example (not an actual interview question)

LRU cache design

Implement a cache of capacity $k$ with get(key) and put(key, value), both in $O(1)$, that evicts the least recently used key when full. Example with $k = 2$: put(1, A), put(2, B), get(1) returns A, put(3, C) evicts key 2, so get(2) returns -1 and get(3) returns C.

Approach

  1. Keep a hash map from key to a node in a doubly linked list ordered from most to least recently used.
  2. get: look up the node; if present, unlink it, move it to the front and return its value; otherwise return -1.
  3. put: if the key exists, update the value and move it to the front; else insert a new node at the front and, if the size now exceeds $k$, remove the tail node and erase its key from the map.
  4. Sentinel head and tail nodes make every unlink and insert a constant number of pointer updates, and the map gives constant-time lookup.
  5. In the example, get(1) makes key 1 the most recent, so key 2 sits at the tail when key 3 arrives and is the one evicted.

Complexity: $O(1)$ per operation, $O(k)$ space

What the interviewer is looking for: Reaching for the hash map plus linked list pairing quickly, handling the update-existing-key and eviction edge cases, and talking through the pointer updates cleanly (in C++, with no dangling pointers or lost memory).

Practice the real questions: round practice · Coding question set

Prepare with QuantVault

The same round at similar firms

Compare with similar firms

Frequently asked questions

What is the DRW Coding interview?

It is stage 5 of 6 in the DRW interview process, after the Trading Intuition & Market Making. Format: 60 min - algorithms. For engineering roles: clean algorithm and data-structure problems (and often C++). State complexity and optimize.

How long is the DRW Coding interview?

Candidates report: 60 min - algorithms.

What questions come up in the DRW Coding interview?

The practice set QuantVault maps to this round centers on coding, market microstructure.

How should I prepare for the DRW Coding interview?

State complexity first, then optimize. Data-structure design -- streaming medians, matching engines.

What comes after the Coding?

The Onsite / Final Rounds (stage 6 of 6). Format: Multiple rounds - full technical bar.

Practice the DRW Coding round

Work the 7 mapped practice problems with progress tracking, then move to the next stage of the DRW funnel.