Skip to content

Decklanorie/Get-Note-Distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Get-Note-Distribution

Edabit & Leetcode Challenge

Get Notes Distribution Create a function that takes an array of students and returns an object representing their notes distribution. Keep in mind that all invalid notes should not be counted in the distribution. Valid notes are: 1, 2, 3, 4, 5

Example getNotesDistribution([ { "name": "Steve", "notes": [5, 5, 3, -1, 6] }, { "name": "John", "notes": [3, 2, 5, 0, -3] } ] ➞ { 5: 3, 3: 2, 2: 1 }) Notes Try doing that with filter + reduce.

About

Edabit & Leetcode Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages