#ifndef S0122_BEST_TIME_TO_BUY_AND_SELL_STOCK_II_HPP #define S0122_BEST_TIME_TO_BUY_AND_SELL_STOCK_II_HPP #include #include using namespace std; class S0122 { public: int maxProfit(vector& prices); }; #endif