about | help | code help+videos | done | prefs |
countValues
Given an array of integers, nums, and an integer, n, return a count of all of the values in the array that equal n. countValues([1, 2, 3, 2, 3, 5], 2) → 2 countValues([1, 2, 3], 4) → 0 countValues([1, 1, 1], 1) → 3 ...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: 175 Post-solution available
Copyright Nick Parlante 2017 - privacy