Arrowstreet Capital HackerRank CodePair Interview: Live Coding Screen

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

Stage 2 of 48 practice problemsUpdated October 20, 2026

The Arrowstreet Capital HackerRank CodePair interview is stage 2 of 4 in the Arrowstreet Capital interview process, after the Online Assessment. Format: Live HackerRank CodePair session - Python/pandas concept questions interleaved with two LeetCode easy/medium problems. Slicing (negative indices, out-of-range bounds, views vs copies, list/NumPy/pandas indexing); @staticmethod vs @classmethod (what each receives, instance/class calls, inheritance with cls).

Preparing for this round? Practice the 8 questions mapped to the Arrowstreet Capital HackerRank CodePair, with worked solutions. A free account saves your progress.

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

Also see the full Arrowstreet Capital interview process and the Arrowstreet Capital interview questions.

What the HackerRank CodePair tests

Pandas: merge (join types, keys, duplicated keys), groupby (agg/transform/apply), rolling (window semantics, min_periods, centered), resample (up/down-sampling, label, closed). The must-do set below rebuilds all of it on small frames with verified outputs, plus both coding problems on the judge.

QuantVault maps 8 practice problems to this round. By topic, the biggest groups are coding (8); by difficulty, 5 easy, 3 medium and 0 hard. 8 of them were reported by candidates who interviewed at Arrowstreet Capital, most recently in Nov 2025.

  • Live Python and pandas on CodePair: slicing and views, groupby aggregate versus transform, merges with duplicate keys and rolling windows, plus a couple of easy to medium coding problems.

How to prepare for the HackerRank CodePair

  • Run slices in your head -- normalise the negatives, clip the bounds, walk the step: a[-3:1:-1] should take five seconds. Know what copies (a list slice), what aliases and what is a view (a NumPy basic slice).
  • cls is bound at call time -- a classmethod called through a subclass builds the subclass; a staticmethod is a plain function in the class namespace, overridable but blind to who called it. Have a from_dict-style constructor example ready.
  • pandas answers are row counts and index alignment -- a merge on duplicated keys multiplies rows per key; agg returns one row per group while transform broadcasts back; dropping an agg result straight into a column gives all-NaN. Rehearse min_periods, center=True and closed/label on a six-row toy frame until the outputs are automatic.
  • The session is conversational; narrate while you type.
  • Two problems, roughly twenty minutes each -- brute force first, then the linear version.

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

Question types in this round

The 1 largest question types in the Arrowstreet Capital HackerRank CodePair practice set; across them the most common sub-topics are python, pandas, hash maps, string algorithms, time series. 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 Arrowstreet Capital asked.

Illustrative example (not an actual interview question)

As-of join of trades to the latest quote

Given sorted trade timestamps and a list of (timestamp, mid) quotes sorted by timestamp, return for each trade the mid of the most recent quote at or before the trade time, or None if no quote exists yet (if several quotes share a timestamp, the last one wins). Example: trades [0, 3, 7, 7, 12], quotes [(1, 100.0), (5, 100.5), (7, 100.2), (10, 99.9)] gives [None, 100.0, 100.2, 100.2, 99.9].

Approach

  1. Walk both lists once with two pointers: keep an index j into the quotes and the last mid seen so far, starting at None.
  2. For each trade time t, advance j while the quote at j has timestamp at most t, updating the last mid each step; then append the last mid.
  3. Because both inputs are sorted, j never moves backwards, and the ties rule falls out naturally since later quotes overwrite earlier ones.
  4. This is what pandas merge_asof does with direction set to backward; a binary search per trade (bisect_right on quote times) is an alternative at $O(n \log m)$.
  5. Two pointers cost $O(n + m)$ time for $n$ trades and $m$ quotes, with $O(1)$ extra space beyond the output.
  6. Edge cases to state: trades before the first quote, duplicate trade times, and an empty quote list.

Complexity: $O(n + m)$ time, $O(1)$ extra space

What the interviewer is looking for: A linear merge instead of a nested scan, correct handling of equal timestamps and of trades with no prior quote, and the link to how merge_asof behaves in pandas.

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 Arrowstreet Capital HackerRank CodePair interview?

It is stage 2 of 4 in the Arrowstreet Capital interview process, after the Online Assessment. Format: Live HackerRank CodePair session - Python/pandas concept questions interleaved with two LeetCode easy/medium problems. Slicing (negative indices, out-of-range bounds, views vs copies, list/NumPy/pandas indexing); @staticmethod vs @classmethod (what each receives, instance/class calls, inheritance with cls).

What questions come up in the Arrowstreet Capital HackerRank CodePair interview?

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

How should I prepare for the Arrowstreet Capital HackerRank CodePair interview?

Run slices in your head -- normalise the negatives, clip the bounds, walk the step: a[-3:1:-1] should take five seconds. Know what copies (a list slice), what aliases and what is a view (a NumPy basic slice). cls is bound at call time -- a classmethod called through a subclass builds the subclass; a staticmethod is a plain function in the class namespace, overridable but blind to who called it. Have a from_dict-style constructor example ready.

What comes after the HackerRank CodePair?

The Superday Written Exam (stage 3 of 4). Format: Paper-based written exam opening the Boston superday - statistics and asset-pricing derivations by hand.

Practice the Arrowstreet Capital HackerRank CodePair round

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