Stock Market Problem
Below is Java code that implements three different solutions for the Stock Market problem:
- A brute force solution
- An iterative solution (from Xeno)
- A recursive divide-and-conquer solution
You'll also find a tester class (StockTester.java) that times all 3 solutions on varying problem sizes.