about | help | code help+videos | done | prefs |
Given an array of test scores - with the method to count the number of A's, B's, etc and return in an array the count of each. ans[0] = number of A's , ans[1] = number of B's, etc. If array is empty return [0,0,0,0,0] gradeFrequency([100, 90]) → [2, 0, 0, 0, 0] gradeFrequency([100, 80, 70, 60, 50]) → [1, 1, 1, 1, 1] gradeFrequency([]) → [0, 0, 0, 0, 0] ...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: 120
Copyright Nick Parlante 2017 - privacy