Topic: Greedy Algorithm Problem / Level: intermediate

Problem: Given an array of positive integers representing 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...