please help me i don’t know the solution
Don't know the solution
hi @naaz
first of all u should try making the code by ur own
and then if u fail do so then refer to the code i share
the algorithm that follows is
4
1 0 2 9
5
3 4 5 6 7
u are given 2 array s
- make a vector to store the sum of the values
- start from the last element of both the array
3 initially the carry is0 - take addition of values at corresponding index and add carry
not if the sum of digits is greater than 9
then take sum%10 and add it to the vector
and carry = sum/10
do this until both array are traversed completely

