leetcode/include/s0122_best_time_to_buy_and_...

15 lines
241 B
C++

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