Topic: Greedy Algorithm Problem / Level: intermediate

Problem: You are given an array of stock prices. Find the maximum profit that can be made by performing multiple buy-and-sell operations.

Run the code to see the output here...