about | help | code help+videos | done | prefs |
Write a method that returns the number of times the 'targetDigit' appears as a digit in any of the numbers in the array 'nums'. Look at the test data for examples. dec16_2019_P1SLHL_countDigits([453, 421, 547, 532, 9867, 685, 457, 988523, 532], 3) → 4 dec16_2019_P1SLHL_countDigits([6, 3, 7, 2, 1, 5, 9], 4) → 0 dec16_2019_P1SLHL_countDigits([6, 3, 7, 2, 1, 5, 9], 7) → 1 ...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