https://ide.codingblocks.com/s/441318 why not the o/p is coming correct , where i 'm wrong
Sum of two arrays
Hello @mohitsharmakosi2001 you are not handling so many cases
and even you should think like ;
this way before directly allocating in c[k] you have to check if the digits sum with the carry is greater then 9.
and add carry simultaneoulsy.
@mohitsharmakosi2001 check this:
but still it will not pass all the test cases i think:
because your logic is not correct.
it is passing all the test cases but is there any other way to do it without using vector
ok got it , thank you so much
@mohitsharmakosi2001 Good!
if you feel that your query is cleared you can mark this doubt as resolved.
Happy Learning!!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.