Mark As Completed Discussion

Try this exercise. Click the correct answer from the options.

Given an array of stock prices on an hourly basis throughout a day, calculate the max profit that you can make by buying and selling only once. Which of the following variables may be helpful in solving this problem?

Click the option that best answers the question.

  • An hourly profit amount
  • A maximum and minimum price
  • An hourly profit and minimum price
  • A daily minimum price