PCAP Stream Replayer - Quant Developer Interview Question
Difficulty: Medium
Category: systems
Asked at: Tower Research, Optiver, Akuna, IMC, HRT
Topics: systems, parsing, binary, data-processing
Problem Description
High-frequency trading systems rely on precise market data replay to backtest execution strategies and validate system latency. This requires parsing binary packet capture streams to reconstruct the exact timing and sequence of historical market events.
Task
Implement the parseAndSchedule method to parse a binary packet capture stream provided as a vector of doubles (which must be cast to uint8_t). The method must validate the file structure, extract sequential packets, and calculate the replay
Practice this medium developer interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.