Thursday, March 7, 2019

Leetcode 1000. Minimum Cost to Merge Stones

March 6, 2019

Introduction


It is a hard level algorithm. I spent over 10 hours to learn a few things. I find out that I have to push myself to learn dynamic programming algorithm and one of ideas is to work on algorithm and data structure more often.

My study


I did write a greedy algorithm, and failed to pass online judge. It took me around one hour. It is a good practice.

I started to work on dynamic programming solution. Here is my discussion link.



No comments:

Post a Comment