Https://ide.codingblocks.com/s/657622

why 1/4 test cases is having runtime error

@hittasehgal,
hi in linked list check for

  1. NULL list
  2. odd length
  3. even length
  4. length of 1 and 2

if these passes mostly all will pass else u can debug there only as these are small cases

I am not getting what is wrong in this code?

@hittasehgal,
nothing as such was wrong just need to return “true” when null

check here https://ide.codingblocks.com/s/657666

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.