Dynamic programming 【 Algorithm 】 The longest common substring December 15, 2023 by Travis Porter No Comments Solution: if the character is same to 1, otherwise set to 0 to reduce repeated calculation, arr [I] [j] = arr [I - 1] [1],... Read More
Dynamic programming Dynamic Programming – 01 Knapsack Problem December 14, 2023 by Robert Maddox No Comments There are NN items and a backpack with a capacity of VV. Each item can only be used once. Item II has a volume of... Read More