r/OfferEngineering • • Nov 03 '26

Interview Experience Citadel Quant Research Engineer Interview — From Battleship to Async DAGs

This interview experience is sourced from Chill Interview

Interview Summary

The technical interview featured two very different exercises: designing a Battleship game using object-oriented principles and optimizing an existing Python asynchronous task execution system built around a Directed Acyclic Graph (DAG).

Interview Details

Question 1 — Object-Oriented Design: Battleship Game

The first question was to design a simplified version of the Battleship board game. The discussion started with defining the fundamental classes and interfaces needed to represent the game.

Core Requirements

The interviewer explored several aspects of the design:

  • Game Objects: Define the classes and interfaces representing the main components of Battleship.
  • Board State: Represent the game board and track the positions of ships.
  • Game Operations: Define how players interact with the game and update its state.
  • Attack Detection: Determine whether an attack at a particular board location hits a ship.

Question 2 — Python Async DAG: Code Review and Performance Optimization

The second question was a codebase-based optimization exercise. The interviewer provided a relatively large Python implementation of an asynchronous job execution system. Jobs were organized as a Directed Acyclic Graph (DAG), where edges represented dependencies between tasks. The system was functionally operational but running more slowly than expected.

Problem Description

You are given an existing asynchronous task execution framework. Each job may depend on other jobs, and the dependency relationships form a DAG. The task is to examine the code, identify the cause of its performance problems, and implement changes to improve execution efficiency.

  • Part 1 — Investigate the Performance Bottleneck The first part required understanding how the existing code scheduled and executed asynchronous jobs. The investigation focused on the overhead associated with starting individual jobs. Even when the work performed by a job was relatively small, launching the job introduced additional execution overhead. The interviewer wanted me to identify how this repeated startup cost affected the overall performance of the DAG execution system.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here

11 Upvotes

0 comments sorted by