We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d773f19 commit 922de2aCopy full SHA for 922de2a
src/BestTimeToBuyAndSellStock.java
@@ -1,3 +1,7 @@
1
+// https://leetcode.com/problems/best-time-to-buy-and-sell-stock
2
+// T: O(n)
3
+// S: O(1)
4
+
5
public class BestTimeToBuyAndSellStock {
6
public int maxProfit(int[] prices) {
7
if (prices.length == 0) {
0 commit comments