Skip to content

Commit 042bcf5

Browse files
committed
Week 5
1 parent 448c105 commit 042bcf5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

best-time-to-buy-and-sell-stock/8804who.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ def maxProfit(self, prices: List[int]) -> int:
99

1010
if answer<price-min_price:
1111
answer=price-min_price
12-
return answer
12+
return answer
13+

group-anagrams/8804who.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ def groupAnagrams(self, strs: List[str]) -> List[List[str]]:
55
sorted_str = ''.join(sorted(string))
66
dic[sorted_str].append(string)
77

8-
return list(dic.values())
8+
return list(dic.values())
9+

0 commit comments

Comments
 (0)