Unique Order ID Generator - Quant Developer Interview Question
Difficulty: Medium
Category: architecture & logic
Asked at: Tower Research, Bloomberg, Two Sigma, Citadel, HRT
Topics: systems, bitwise, algorithms, c++
Problem Description
Distributed systems require unique, time-ordered identifiers to maintain consistency across high-frequency trading platforms and order management systems. The Snowflake algorithm addresses this by generating 64-bit IDs using timestamps and machine identifiers without central coordination, ensuring low-latency order tracking and reconciliation.
Task
Implement a SnowflakeGenerator class that constructs unique 64-bit identifiers based on a custom epoch, machine ID, and sequence number. The ID stru
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.