| about | help | done | prefs | create account |
Java > Recursion-2 > groupSum6
prev | next | chance
| 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.)
groupSum6(0, {5, 6, 2}, 8) → true groupSum6(0, {5, 6, 2}, 9) → false groupSum6(0, {5, 6, 2}, 7) → false ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops
|
Forget It! -- delete my code for this problem
New just for fun
Random User Progress Graphs
Random Epic Graphs
406.0
Copyright Nick Parlante 2006-11 - privacy