You are gven an array containing the prices of a painting on 7 consecutive
days (Day, Dar2, etc). You have to buy the painting on some day (say Dal)
and sell it at some later day (say Days). Write a program which will calolate
the maimum possible profit you can make and the days on which the
painting should be bought and sold,
Egmde sout
• If the given array is {100, 180, 260,310,40, 535, 695), maximum profit
of 655 can be earned by buying on Das and selling on Day)
• Output Format: Buy on - Day 5 - Sell on-Day 7 - Profit = 655
MacBook Air
Answers
Answered by
1
Answer:
gzdfxjGmzjzjrzgkxzjfxlhxzkfdn
Answered by
0
Answer:
I don't understand
Explanation:
please make it brainliest answer please please please please
Similar questions