Add Strings
Description:
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.
Example
Given num1 = “123”, num2 = “45”
return “168”
Code:
class Solution:
"""
@param num1: a non-negative integers
@param num2: a non-negative integers
@return: return sum of num1 and num2
"""
def addStrings(self, num1, num2):
# write your code here
return '%d'%(int(num1)+int(num2))