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: Hard
Category: template_metaprogramming
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: constexpr, compile-time, hashing, fnv1a, symbol-routing, template-metaprogramming, c++17
In high-frequency trading, message dispatch based on string identifiers like instrument symbols must be extremely fast. Using constexpr functions to hash these strings at compile time eliminates runtime lookups, enabling O(1) dispatch via switch statements. This problem uses the FNV-1a algorithm, a simple and effective choice for generating compile-time integer constants from short strings. Task Implement the constexpr function fnv1a_hash(const char str, std::size_t len) to compute the 32-bit F
Practice this hard 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.