Problem bank

Problem 107 of 333HardCodingP107

Order book matching

  1. Implement a price-time priority order book with O(log⁡P)O(\log P) order add and O(1)O(1) match where PP is the number of distinct price levels.