Coding

Add Two Numbers Represented as Strings

Add two non-negative integers represented as strings.

Input: num1 = "456", num2 = "77"

Output: "533"

Explanation: Performs character-by-character addition from right to left, carrying the 1 from 6+7=13 to the next decimal place.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions

Interview question asked to Software Engineers interviewing at Tokopedia, Lyft, Kajabi and other companies. Original question asked: Add Two Numbers Represented as Strings.