Given a string that contains letters, digits and the '-' character, find every number embedded in it and return their sum. A maximal run of consecutive digits forms one number. If a number is…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.