test case 7 fails , rest of the testcases are passed
Only one test case fails
if(head==NULL || head->next==NULL){
return false;//do this instead of return head
}
If this resolves your query then please mark it as resolved 
1 Like