Bhcoin Investmen ravi wants to buy and sell Bacon he knows the price of bitcoin for upcoming N days and he wants to buy and sell exactly ONCE so help hin calculate the maximum profit he can make by buying and selling only 1 bitcoin NOTE'he decides not to buy any Bitcoin or he cant make any profit . in such case print -1. input format 11 le content integer N next line contains n spaced integers(al a2 a3 aN). output format print single integer le maximun profit he can make 00 Constraints 2N 1000000 foar 10000 Input format N al aN Example Input 4 1234 output 3 program in c language
Answers
Answered by
0
Answer:
oh
Explanation:
bitcoin ah
Similar questions