topic:
122.The best time for buying and selling stocksII.md
Thought:
I can forget that the price will be reduced the price one day after the first day.,Thinking is to build the minimum child。
Then I found that it seems a bit complicated,Have done it again(2023.1.13),I found out that it seems that only one line can be done。
Code:
1 | class Solution: |