leetcode/include/s0122_best_time_to_buy_and_sell_stock_ii.hpp
Sainnhe Park 331178cb2c
All checks were successful
ci/woodpecker/push/test Pipeline was successful
Add stock
2023-02-09 21:54:45 +08:00

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