2 ms·
You can make a dynamic programming approach run in polynomial time in the size of the input. If you specify the input in unary, that is.
by eru 16y ago
You can make a dynamic programming approach run in polynomial time in the size of the input. If you specify the input in unary, that is.