Search⌘ K
AI Features

Solution: Add Strings

Solution: Add Strings gives you two non-negative integers written as strings and asks you to return their sum as a string without direct integer conversion or big-integer libraries.

Statement

Given two non-negative integers, num1 and num2, represented as strings, return the sum of num1 and num2 as a string.

You must not use any built-in library for handling large integers (such as BigInteger) or directly convert the inputs to integers.

Constraints:

  • 1≤1 \leq ...