Easiest Solution With Explanation


  • 0
    S

    [alt text](image url)0_1497347622870_string.jpg
    Guys As i have found most difficulties to understand the problem.Here From the above picture we can see that the product of ith and jth number will be stroed in position i+j and i+j+1,
    i.e., res[i+j] is used to store the carry value and res[i+j+1] is used to rightmost digit of the sum.
    0_1497347660069_Screenshot (99).png
    I hope it will help you.


Log in to reply
 

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