Algorithm: Choose an efficient way for Dynamic Programming(LeetCode.5899)
I met a problem during the weekly competition of LeetCode. I think I write the code which is correct and near the time complexity the problem supposed. However, I got a TLE when I submited it. This blog is a summary for that.
The problem
Two Best No...
yaohui.hashnode.dev6 min read