500+ quant interview questions for Jane Street, Citadel, Two Sigma, DE Shaw, and other top quantitative finance firms.
Statistical analysis and quantitative modeling problems
Trading MCQs, probability brainteasers, and market scenarios
Practice quant interview questions on MyntBit - the all-in-one quant learning platform. Free questions available for C++ coding, Python problems, probability brainteasers, and trading MCQs.
Difficulty: Medium
Category: low_latency
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: simd, avx2, horizontal-sum, low_latency, portfolio, vectorization
Risk engines in quantitative finance require low-latency aggregation of portfolio positions. This is often achieved through a horizontal sum, which reduces a vector of values to a single scalar total. Implementing the scalar equivalent of a SIMD horizontal add (hadd) is a fundamental building block for such high-performance computations. Task Implement the function horizontal_sum(const double p) which accepts a pointer to an array of four double values and returns their sum as a single double.
Practice this medium developer interview question on Myntbit - the all-in-one quant learning platform with 1000+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.