mirror of
https://github.com/arkorty/LeetCode.git
synced 2026-03-18 00:57:17 +00:00
Refactor almost everything
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include <vector>
|
||||
|
||||
class Solution {
|
||||
public:
|
||||
public:
|
||||
int maxProfit(std::vector<int> &prices) {
|
||||
int prof = 0;
|
||||
for (int i = prices.size() - 1, max = 0; i >= 0; --i) {
|
||||
|
||||
Reference in New Issue
Block a user