2 ms·
Oh, isn't this a variation of the Knapsack (or more precisely subset sum) problem? With the additional constraint of adjacency.
by archi42 5y ago
Oh, isn't this a variation of the Knapsack (or more precisely subset sum) problem? With the additional constraint of adjacency.