/stock-problem

Solution (brute force) for Stock problem using Spock for testing.

Primary LanguageGroovy

Stock Problem

If you had a black box that would give you minute by minute stock price quotes one day in ADVANCE, how would you optimize your gains on the following day if you could only make one buy and one sell.

To run the specifications for the solution, run ./gradlew test.

Test report can be viewed at ./build/reports/tests/index.html