BlackRock Onsite Coding & C++ Interview

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

Stage 4 of 645 min8 practice problemsUpdated October 20, 2026

The BlackRock Onsite Coding & C++ interview is stage 4 of 6 in the BlackRock interview process, after the Onsite Math & Statistics. Format: 45 min · shared editor. A coding round with a C++-internals component.

Preparing for this round? Practice the 8 questions mapped to the BlackRock Onsite Coding & C++, with worked solutions. A free account saves your progress.

Save a BlackRock plan to your dashboard: the rounds in order, with your progress.

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

What the Onsite Coding & C++ tests

Reported problems: valid anagram (LC 242), Best Time to Buy/Sell Stock, two Fibonacci implementations, a Python percentile/count script over date-price-volume data, and a VAR(1) process simulator class with input assertions. C++ knowledge: the Rule of Five, run-time vs compile-time polymorphism, and pass-by-reference vs pass-by-value.

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

How to prepare for the Onsite Coding & C++

  • Write clean, teammate-readable code with edge-case handling; they care about style, not golf.
  • Have the Rule of Five, virtual-function vs template polymorphism, and reference-vs-value semantics as reflex one-liners.
  • For the simulator class, lead with a clear constructor + run method and add input-validation assertions.

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

Question types in this round

The 1 largest question types in the BlackRock Onsite Coding & C++ practice set; across them the most common sub-topics are system and class design, C++, complexity analysis, hash maps, sorting and searching. The questions themselves, with worked solutions, are in the round practice.

Coding8 in this round

How coding 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 BlackRock asked.

Illustrative example (not an actual interview question)

Maximum drawdown in one pass

Given a vector of daily closing prices, return the maximum drawdown: the largest drop from a running peak to a later price, as a fraction of that peak. Sample: [100, 120, 90, 95, 130, 80] returns $50/130 \approx 0.385$.

Approach

  1. Walk through the prices once, remembering the highest price so far $P$ and the worst decline ratio $D$ found so far.
  2. At each price $p$: update $P = \max(P, p)$, then $D = \max(D, (P - p)/P)$.
  3. Sample: the 120 peak followed by 90 gives $0.25$; the later 130 peak followed by 80 gives $50/130 = 5/13 \approx 0.385$, the answer.
  4. A brute force over all pairs $i < j$ is $O(n^2)$; the single scan is $O(n)$ with $O(1)$ extra memory.
  5. In C++, take the input as const std::vector<double>& to avoid a copy, and assert the prices are positive and the vector is non-empty.

Complexity: $O(n)$ time, $O(1)$ space; sample gives $5/13 \approx 0.385$

What the interviewer is looking for: Spotting the running-maximum invariant instead of a double loop, plus sensible C++ choices about passing by const reference and validating inputs.

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 BlackRock Onsite Coding & C++ interview?

It is stage 4 of 6 in the BlackRock interview process, after the Onsite Math & Statistics. Format: 45 min · shared editor. A coding round with a C++-internals component. Reported problems: valid anagram (LC 242), Best Time to Buy/Sell Stock, two Fibonacci implementations, a Python percentile/count script over date-price-volume data, and a VAR(1) process simulator class with input assertions.

How long is the BlackRock Onsite Coding & C++ interview?

Candidates report: 45 min · shared editor.

What questions come up in the BlackRock Onsite Coding & C++ interview?

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

How should I prepare for the BlackRock Onsite Coding & C++ interview?

Write clean, teammate-readable code with edge-case handling; they care about style, not golf. Have the Rule of Five, virtual-function vs template polymorphism, and reference-vs-value semantics as reflex one-liners.

What comes after the Onsite Coding & C++?

The Onsite Quant Finance & Derivations (stage 5 of 6). Format: 45–60 min · whiteboard.

Practice the BlackRock Onsite Coding & C++ round

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