about | help | code help+videos | done | prefs |
The points that each player earns while playing a game are recorded in an array. If a player has a negative score then count that player's score as 0. Create a method that returns the total number of points earned for all players. commonAlgTotalPoints([20, 30, 10]) → 60 commonAlgTotalPoints([100]) → 100 commonAlgTotalPoints([-5, 20, 30]) → 50 ...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: 10 Post-solution available
Copyright Nick Parlante 2017 - privacy