one line simple python solution, 59ms


  • 1
    C
    class Solution(object):
        def multiply(self, num1, num2):
            """
            :type num1: str
            :type num2: str
            :rtype: str
            """
            return str(int(num1)*int(num2))
    

  • 1
    A

    Didn't it say "Convert to integer not allowed"?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.