id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

pais@kinetigram.com recursion02 > R28_splitOdd10
prev  |  next  |  chance

APCS Recursion 2, Problem 8. Given an array of ints, is it possible to divide the ints into two groups, so that the sum of one group is a multiple of 10, and the sum of the other group is odd. Every int must be in one group or the other. Write a recursive helper method called partitionSums that takes whatever arguments you like (need), and make the initial call to your recursive helper from R28_splitOdd10. (No loops!)


R28_splitOdd10([5, 5, 5]) → true
R28_splitOdd10([5, 5, 6]) → false
R28_splitOdd10([5, 5, 6, 1]) → true

...Save, Compile, Run (ctrl-enter)

public boolean R28_splitOdd10(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 400 Post-solution available

Copyright Nick Parlante 2017 - privacy