class Solution: def maxProfit(self , prices: List[int]) -> int: res = 0 buy = prices[0] &nbs...