String Addition
Given two strings a, and b, both representing an integer, add them and return it in the same string representation.
This should be implemented directly, instead of using eval or built-in big integers.
Constraints`
n ≤ 200wherenis the length ofam ≤ 200wheremis the length ofb
https://binarysearch.com/problems/String-Addition
Examples
Example 1
Input
- a =
12 - b =
23
Output
- answer =
35
Explanation
12 + 23 = 35
Leave a comment