"PS: The program should run in polynomial time. "
Is that optional?
(Maybe I've been reading too specs that reference RFC2119.)
Is that optional?
(Maybe I've been reading too specs that reference RFC2119.)
I can make the program run polynomial in the size of sum of the input numbers. (I.e. pseudo-polynomial in the input.)