Domanda di colloquio di Jump Trading

Implement a data structure (according to their specs)