about | help | code help+videos | done | prefs |
int value 6 is acceptable since it's the sum of all numbers from 1-3: 1+2+3 = 6. 7 is not acceptable because sum of all numbers from 1-4 is 10. Return true if a number is acceptable, otherwise false. isAcceptable(0) → true isAcceptable(3) → true isAcceptable(7) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 115
Copyright Nick Parlante 2017 - privacy