Latency Histogram - Quant Developer Interview Question
Difficulty: Medium
Category: architecture & logic
Asked at: Jump Trading, Tower Research, Citadel Securities, Optiver, HRT
Topics: systems, performance, c++
Problem Description
High-frequency trading systems require precise latency monitoring on the critical path without incurring garbage collection overhead or dynamic memory allocation costs. A fixed-width histogram enables efficient, zero-allocation data recording to track performance distributions and calculate percentiles during intense market activity.
Task
Implement a LatencyHistogram class to record latency measurements into pre-allocated buckets and calculate percentiles. The class must support initialization
Practice this medium developer interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.