I studied an algorithm (?) Called dynamic programming. 
First of all, the simpler →
And it's a waste →
The first one is the DP you get, and the second one is the DP you give out. To put it simply, dynamic programming is a method of comparing the weights one by one in order and filling in all the patterns! Well, it's a full search, so the order is quite large, but I think it's big if you don't know how to do it! !! I will do my best to continue! !!
Recommended Posts