Topic: Dynamic Programming Problem / Level: beginner

Problem: Compute the maximum profit from a single buy and sell in a stock prices array.

Run the code to see the output here...