def max_profit(prices: list[int]) -> int: # TODO: find the maximum profit from a single buy/sell return 0 print(max_profit([7, 1, 5, 3, 6, 4])) # 5 print(max_profit([7, 6, 4, 3, 1])) # 0
Click Run to execute, or Submit to grade (all languages).