Can you please tell the mistake in this function which i write to add two linked list

firstly i reverse both the linked list and then create another linked list and now adding the two linked list and again reverse the result linked list and return its head

pls share the whole code not just the function… only then would i be able to debug it by running on some sample test cases

and ur code is not handling the case if any one linked list is over but still some numbers are present in other linked list…
consider input
123
12345
here ur code fails


this is my personal code… u can refer this

This is my complete code

i shared my code… refer to it once… ur logic has many flaws… if u still face any difficulty msg back here

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.