121- solution to the problem of stock

Web links from leetcode: https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/solution/yi-ge-fang-fa-tuan-mie-6-dao- gu-piao-wen-ti- by-l-3 /

Dynamic programming solution from the classic stock issues, as a summary of today's dynamic programming learning. Need to savor, and this deformation problem finishing a good idea, including the realization of the code.

Guess you like

Origin www.cnblogs.com/nxnslc-blog/p/12405333.html