diff --git a/solution/0100-0199/0121.Best Time to Buy and Sell Stock/README.md b/solution/0100-0199/0121.Best Time to Buy and Sell Stock/README.md index 2d217f0be055f..0289a17bba909 100644 --- a/solution/0100-0199/0121.Best Time to Buy and Sell Stock/README.md +++ b/solution/0100-0199/0121.Best Time to Buy and Sell Stock/README.md @@ -74,7 +74,7 @@ tags: ```python class Solution: def maxProfit(self, prices: List[int]) -> int: - ans, mi = 0, inf + ans, mi = 0, float('inf') for v in prices: ans = max(ans, v - mi) mi = min(mi, v)