Match Limit Orders with Price-Time Priority

Read the full interview experience this question came from →

Quick Overview

Implement a limit-order matcher that honors crossing rules, price-time priority, partial fills, and resting-order prices. Produce trades and final books in deterministic order while reasoning about data structures, large quantities, edge cases, and logarithmic processing.

Match Limit Orders with Price-Time Priority

Company: Two Sigma

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Implement a limit-order matcher that honors crossing rules, price-time priority, partial fills, and resting-order prices. Produce trades and final books in deterministic order while reasoning about data structures, large quantities, edge cases, and logarithmic processing.

Read the full Two Sigma Software Engineer interview experience this question came from

Two Sigma logo
Two Sigma
Jul 31, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
61
0
Practice
Loading...