0

help with backtracking in JAVA

hello, im not so sure how to do this. like in this Q: Given an array of ints, is it possible to choose a group of some of the ints, beginning at the start index, such that the group sums to the given target? However, with the additional constraint that all 6's must be chosen. (No loops needed.) i know tha base but i dont know how to add the constraint . can someone show me the code that solve this problem so i can see how to do this kind of Q? in JAVA, Tnx a lot guys !

4th Mar 2018, 2:49 PM
Shani Kalyanov
Shani Kalyanov - avatar
0 Réponse