Add stock
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
2023-02-09 21:34:48 +08:00
parent b8d1550a43
commit 331178cb2c
5 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#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