about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy