topic:
2251.The number of flowers during the flowering period.md
Thought:
Dynamic planning,Find the least problem
Minority problem:FirstiThe maximum profit of heaven = max(Firsti-1The maximum profit of heaven, FirstiHeavenly price - forwardi-1The minimum price of heaven)
Code:
1 | class Solution: |