diff --git a/C++/Best-Time-to-Buy-and-Sell-Stock-II.cpp b/C++/Best-Time-to-Buy-and-Sell-Stock-II.cpp index 116a37bf..3c2f8e3c 100644 --- a/C++/Best-Time-to-Buy-and-Sell-Stock-II.cpp +++ b/C++/Best-Time-to-Buy-and-Sell-Stock-II.cpp @@ -8,7 +8,6 @@ class Solution int maxProfit(vector &prices) { int sum = 0; - int count =sum; //If the number of element in the array are zero or one just return zero. if (prices.size() == 1 or prices.size() == 0) { @@ -30,4 +29,4 @@ class Solution return sum; } -}; +}; \ No newline at end of file