Skip to content

Commit 3cd7442

Browse files
author
mykoo
committed
best-time-to-buy-and-sell-stock
1 parent 348c154 commit 3cd7442

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

best-time-to-buy-and-sell-stock/GUMUNYEONG.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ var maxProfit = function (prices) {
1515
return max;
1616
};
1717

18+
// TC : O(n^2);
19+
// SC : O(1);

0 commit comments

Comments
 (0)