← Amazon questions
CodingReported in a candidate post, Jul 2025

Sum the numbers embedded in a string

Filed under Amazon

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.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.