The AQR Capital Management On-Machine Onsite interview is stage 4 of 6 in the AQR Capital Management interview process, after the PnL-Calculator Take-Home. Format: 2–3 hr project + 3–4 × 45-min rounds. A morning on-machine project, a Task Scheduler (Course-Schedule-II variant with per-task time windows + durations → topological sort + heap) reviewed by an engineer, then algorithm + behavioral rounds: binary search on a continuous range (find x for monotonic y=f(x)), tree paths summing to a target that may bend, a fixed-size O(1) insert/delete container, and standard graph/DP.
Preparing for this round? Practice the 33 questions mapped to the AQR Capital Management On-Machine Onsite, with worked solutions. 4 are free, and your first answer needs no account. A free account saves your progress.
Save a 4-week AQR Capital Management plan to your dashboard: week by week through the rounds, with your progress.
Also see the full AQR Capital Management interview process and the AQR Capital Management interview questions.
What the On-Machine Onsite tests
QuantVault maps 33 practice problems to this round. By topic, the biggest groups are coding (31), combinatorics (1), optimization (1); by difficulty, 10 easy, 20 medium and 3 hard. 31 of them were reported by candidates who interviewed at AQR Capital Management, most recently in Dec 2019.
Who takes this round: Software / Quant Developer candidates. See the full AQR Capital Management process and who takes each round.
How to prepare for the On-Machine Onsite
- Practice topological sort + heap for the Task Scheduler — it's the centerpiece on-machine round.
- Tree path-sum where the path can bend (left-chain + node + right-chain) is a manager's signature; handle the BST optimization.
Further reading: How quant superdays work · Behavioral questions at trading firms · Market-making game interview guide.
Question types in this round
The 3 largest question types in the AQR Capital Management On-Machine Onsite practice set; across them the most common sub-topics are arrays, data structures, sorting and searching, graph algorithms, complexity analysis, two pointers and sliding windows. The questions themselves, with worked solutions, are in the round practice.
Coding31 in this round
Combinatorics1 in this round
Optimization1 in this round
Illustrative worked example
An original example of the most common question type in this round, written by QuantVault and modeled on a free question from the round practice set. It shows the reasoning the round rewards; it is not a question AQR Capital Management asked.
Illustrative example (not an actual interview question)
Union-find on a stream of links
Accounts are labeled 0 to $n-1$. Links arrive one at a time as pairs $(a, b)$ meaning both accounts belong to the same client. After each link, report the current number of distinct clients. Sample: $n = 6$ with links (0,1), (2,3), (1,2), (0,3), (4,5) gives 5, 4, 3, 3, 2.
Approach
- Keep a disjoint-set forest: parent array plus a size per root, and a counter starting at $n$.
- For each link, find the roots of $a$ and $b$ with path compression (point visited nodes at the root).
- If the roots differ, attach the smaller tree under the larger one and decrement the counter; if equal, the link adds nothing.
- Sample: 6 becomes 5 after (0,1), 4 after (2,3), 3 after (1,2); (0,3) joins nodes already in one set so it stays 3; (4,5) gives 2.
- Each operation costs amortized $O(\alpha(n))$, the inverse Ackermann function, effectively constant.
- Re-running BFS after every link would cost $O(m(n+m))$, which is why the incremental structure matters.
Complexity: $O((n+m)\,\alpha(n))$ time, $O(n)$ space; sample output 5, 4, 3, 3, 2
What the interviewer is looking for: Recognizing that an online connectivity count is a union-find problem, and knowing why both path compression and union by size are needed for the near-constant bound.
Try the real question: #569 Counting Friend Circles Free
Prepare with QuantVault
The same round at similar firms
Compare with similar firms
Frequently asked questions
What is the AQR Capital Management On-Machine Onsite interview?
It is stage 4 of 6 in the AQR Capital Management interview process, after the PnL-Calculator Take-Home. Format: 2–3 hr project + 3–4 × 45-min rounds. A morning on-machine project, a Task Scheduler (Course-Schedule-II variant with per-task time windows + durations → topological sort + heap) reviewed by an engineer, then algorithm + behavioral rounds: binary search on a continuous range (find x for monotonic y=f(x)), tree paths summing to a target that may bend, a fixed-size O(1) insert/delete container…
How long is the AQR Capital Management On-Machine Onsite interview?
Candidates report: 2–3 hr project + 3–4 × 45-min rounds.
What questions come up in the AQR Capital Management On-Machine Onsite interview?
The practice set QuantVault maps to this round centers on coding, combinatorics, optimization.
How should I prepare for the AQR Capital Management On-Machine Onsite interview?
Practice topological sort + heap for the Task Scheduler — it's the centerpiece on-machine round. Tree path-sum where the path can bend (left-chain + node + right-chain) is a manager's signature; handle the BST optimization.
What comes after the On-Machine Onsite?
The QR Technical Rounds (stage 5 of 6). Format: 2 back-to-back · ~1 hr each.
Practice the AQR Capital Management On-Machine Onsite round
Work the 33 mapped practice problems with progress tracking, then move to the next stage of the AQR Capital Management funnel.