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

 

jebbert@volusia.k12.fl.us > jan30_2020_APP1SLHL_sumOfOnesPlaces
prev  |  next  |  chance

Write a method that finds the sum of the one's places in all of the positive integers in array 'nums'. For example, the sum of all the one's places in the array {5233,824,98253,421} is 11 since 3+4+3+1=11


jan30_2020_APP1SLHL_sumOfOnesPlaces([5]) → 5
jan30_2020_APP1SLHL_sumOfOnesPlaces([8921]) → 1
jan30_2020_APP1SLHL_sumOfOnesPlaces([14, 2]) → 6

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

public int jan30_2020_APP1SLHL_sumOfOnesPlaces(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: 290

Copyright Nick Parlante 2017 - privacy