Difficulty: Hard
Category: low_latency
Asked at: Akuna, Jump Trading, Tower Research, Optiver, HRT
Topics: bit-manipulation, optimization, data-structures, simd
High-frequency trading systems frequently perform bulk risk checks against thousands of binary constraints, such as restricted instruments or permission flags. While standard containers offer convenience, custom bitset implementations utilizing 64-bit block processing and hardware intrinsics provide the necessary low-latency performance for these critical validation steps. This approach maximizes CPU throughput by processing multiple bits per instruction cycle. Task Implement a class DynamicBit
Practice this hard 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.