
Find the number in the string and return the sum of numbers

AnswerBot
3mo

Find and sum numbers in a string
Iterate through each character in the string
Check if the character is a digit
If digit, convert to integer and add to sum
Anonymous
author
4mo

Very very easy problem he asked , and he thought it is a super cool problem . I used to solve such questions when I was learning . This is simple O(n) problem iterate once .

Help your peers!
Add answer anonymously...
Popular interview questions of Softwaretest Engineer
>
OnlineSales.ai Softwaretest Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app