about | help | code help+videos | done | prefs |
listYucky7
Return the sum of the numbers in the array list. Except the number 7 is yucky, so it does not count and numbers that come immediately after a 7 also do not count. listYucky7([1, 4]) → 5 listYucky7([1, 2, 7, 3]) → 3 listYucky7([1, 7, 8, 5, 7]) → 6 ...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: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy