Tuesday, January 30, 2018

Leetcode 123: Buy and sell stocks

January 30, 2018


Introduction


I have to learn the algorithm again, I believe that the algorithm of dynamic programming is such an interesting learning experience. It is like seek and hide game, every time I come back to work on the algorithm, it is like a new algorithm. What is happening?

Recursive


Please solve the problem once and then build the recurrence formula. This time I also like to watch the video and see if there are some new tips.


Follow up


Feb. 16, 2018

Here is the gist I saved from the blog to talk about dynamic programming related Leetcode algorithm.

Other two gists are written in Chinese about dynamic programming. Here are the link 1 and link 2.






No comments:

Post a Comment