about | help | code help+videos | done | prefs |
Given a strings, adds up the positive digits inside the the string and return the sum. Return zero when there is no digit in the given string. addDigits("") → 0 addDigits("a0") → 0 addDigits("1fr2") → 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: 130 Post-solution available
Copyright Nick Parlante 2017 - privacy