getting an error on submission but work fine in another idea
Https://ide.codingblocks.com/s/318870
hello @aattuull i have made some changes in your function where you were reversing the linked list …
here is the corrected code https://ide.codingblocks.com/s/318875.
i hope i have cleared your doubt .
Happy Learning !!!
I understand your code but what is the mistake in my logic ?
hello @aattuull in your code you were passing the function call as well and you were also checking whether temp is at null or not i have just corrected that your code is working fine and after correction i have tried submit it and it is passing all the test cases …
please try to submit it again .
I hope i have cleared your doubt !!
Happy Learning !!
