Algorithms and data structures II - PUC RS
Using maxheap and minheap to build an priority queue to process stock trading in high volumes.
- Input is a txt file where each line represents an buy or sell order
- The algorithm read each line and close any possible deal with those offers
- At the end, it calculates the profit made by the arbitrage