Courses‎ > ‎AP Computer Science 2‎ > ‎konstantinovich‎ > ‎

2018-02-06 HW

posted Feb 6, 2018, 5:56 AM by Konstantinovich Samuel
Goal Recursive Backtracking

Discussion - all possible sums of the subsets of 1 to n.




http://codingbat.com/java/Recursion-2
Try now to complete the two main problems:
GroupSum
splitArray

There are 6 more variations that you should complete. Once you solve the main idea, the variations are different degrees of extra difficulty. Many are merely an extra if statement.
Homework:
Everyone should complete all of these over the next 2 days. 

Comments