about | help | code help+videos | done | prefs |
Write a method that returns the number of times 'digit' appears as a digit in the array of integers 'nums'. Note that 'nums' can contain any integers including positive, negative, and zero. Look at the test data for examples. quiz2022_03_01_SLHL_countDigits([], 7) → 0 quiz2022_03_01_SLHL_countDigits([4], 4) → 1 quiz2022_03_01_SLHL_countDigits([2222], 2) → 4 ...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