15 lines
241 B
C++
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
|