shabaNAMINATA6 shabaNAMINATA6
  • 06-11-2020
  • Business
contestada

Create your own buy and sell stock problem

Respuesta :

brachac77
brachac77 brachac77
  • 06-11-2020

Answer:

The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earned by buying on day 0, selling on day 3. Again buy on day 4 and sell on day 6. If the given array of prices is sorted in decreasing order, then profit cannot be earned at all.

Explanation:

Answer Link

Otras preguntas

Please help me in this!
nag mamaneho ang iyong ama upang ihatid ka sa paaralan . pinara siya ng isang pulis at hinuli dahil labag sa number coding ng ticket sa paglabag ng gatas trapik
you have a toy bin that is 6 feet long, 4 feet wide, and 3 feet high, how much space do you have for toys? Please I really need this answer
Dess Inc., a manufacturing company, has provided the following data for the month of August. The balance in the Work in Process inventory account was $10,000 at
Hmmmmmskksksksksksjsjsjdj
PLSSS HELPPPP I WILLL GIVE YOU BRAINLIEST!!!!!! PLSSS HELPPPP I WILLL GIVE YOU BRAINLIEST!!!!!! PLSSS HELPPPP I WILLL GIVE YOU BRAINLIEST!!!!!! PLSSS HELPPPP I
HELP 100 points I WILL GET RID OF ANSWER IF NOT GOOD
Rorisangramakgolela​
Below are the transactions and adjustments that occurred during the first year of operations at Kissick Co a. Issued 198,000 shares of $6-par-value common stock
The product of 1and 3/4 is ____________ 3/4.