โ† OYO questions

Extract and Sum Numbers from String

Filed under OYO

Given a string, extract all numbers (including negative numbers preceded by a minus sign) and return their mathematical sum.

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 OYO questions

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