From 7b6109a80a7549d09d9c5a4afd318e7f380187cc Mon Sep 17 00:00:00 2001 From: Ishu Raj Date: Wed, 7 Oct 2020 00:38:02 +0530 Subject: [PATCH] Revert "Update Best-Time-to-Buy-and-Sell-Stock-II.cpp" --- C++/Best-Time-to-Buy-and-Sell-Stock-II.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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