Skip to content

Commit

Permalink
Minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnieKim committed Aug 21, 2013
1 parent d516c55 commit 3bd7e23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BestTimetoBuyandSellStock.h
Expand Up @@ -21,8 +21,7 @@ class Solution {
{
if (prices[i] < prices[imin])
imin = i;
if (prices[i] - prices[imin] > res)
res = prices[i] - prices[imin];
res = max(res, prices[i] - prices[imin]);
}
return res;
}
Expand Down

0 comments on commit 3bd7e23

Please sign in to comment.