Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (anonymous):

JAVA >>>> The subset sum problem is as follows: Given N integers A1; : : : ;AN and an integer K, is there a group of integers that sums exactly to K? a) Give a recursive method solving this problem. b) Give a method solving this problem with running time O(NK). Your method signature would look like this: public static boolean sum(int [] array, int n, int k)

OpenStudy (caominhim):

is A1 to An an ordered list?

OpenStudy (e.mccormick):

What did you do so far?

OpenStudy (anonymous):

I solved it alreadythanks ... @caominhim not sorted ...

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!