Not working please check the code


please check where iam doing wrong

hey @dbhavanishankar89, you read the data in wrong way. I have corrected your code https://ide.codingblocks.com/s/145436 /

Time limit exceeded error.What to do?

hey @dbhavanishankar89 check the constraints of question data part of node needs to be type long long

check this code.I modified.But saying wrong answer

hey @dbhavanishankar89, I have corrected your code and run for this input, it is working fine


1
4
1 3 5 7
3
2 4 6

its saying wrong output …please modify my code…and tell where iam doing wrong

Hey @dbhavanishankar89, for every testcase we need different linked list, so that declaration of head of LL should come under while loop https://ide.codingblocks.com/s/145749

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.