3 ms·
They would certainly have to be bounded integers, right?
by j2kun 12y ago
They would certainly have to be bounded integers, right?
- userbinator 12y agoYes, I believe it is something like O(n) where n is the sum of all the distances. It's probably related to the "pseudopolynomial time subset-sum" algorithm.