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

 

sum39


Given an array of ints, return true if the sum of all the 3's in the array is exactly 9.


sum39([2, 3, 2, 2, 4, 2]) → false
sum39([3, 2, 3, 3, 2, 3, 3]) → false
sum39([3, 2, 3, 2, 3]) → true

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

public boolean sum39(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: 14

Copyright Nick Parlante 2017 - privacy