Cody

Problem 57. Summing Digits within Text

Given a string with text and digits, add all the numbers together.

Examples:

 Input str = '4 and 20 blackbirds baked in a pie'
 Output total is 24
 Input str = '2 4 6 8 who do we appreciate?'
 Output total is 20

Solution Stats

44.07% Correct | 55.93% Incorrect
Last Solution submitted on Dec 03, 2019

Problem Comments

Solution Comments

Problem Recent Solvers1055

Suggested Problems

More from this Author95

Problem Tags