just need to diff the list and sum the positive numbers
def maxProfit(self, prices):
:type prices: List[int]
for i in range(len(prices)-1):
for j in p:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.