code:
Custom testcase running , but tescases showing run error
@myself.yash.srivastav according to the question the size of linked list can go upto 100000 elements, but you are running the loop for only 1000 time. Change value in the loop from 1000 to 100000 and you code will work fine.
Hope this helps.