i was not able to find a logic to do this please help me!
Arrays-sum of two array problem
What you have to do is add the 2 arrays by adding their elements individually
cconsider this you are given 2 numbers 12342 and 764 . how fo you add them ?
12342
- 764
=13106
instead of numbers now you are given 2 arrays
{1, 2, 3, 4, 2} - . {7, 6, 4}
now for making this a little more easy consider adding the above 2 arrays as .
{1, 2, 3, 4, 2} - {0, 0, 7, 6, 4}
= {1, 3, 1, 0, 6 }
.
Ply try again now
Hi Aman, since you have not been responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.