// Time Complexity: O(n²) (due to substring creation and window reset) } else if (right == s.length() - 1 && !(map.containsKey(s.substring(left, right + 1)))) { map ...
This repository contains a proof-of-concept order matching engine implemented as a Spring Boot microservice. It uses a price-time priority algorithm to match buy and sell orders entirely in-memory, ...