#include<iostream> #include<vector> #include<algorithm> using namespace std; class Solution{ public: int solve(vector<int>& prices) { int sell1 = 0, buy1 = 0, sell2 = 0, buy2 = 0; buy1 = -prices[0];&n...