p1=p2=h;do{p1=p1->next;p2=p2->next->next;}while(p2||p2->next||p1==p2);if(p1==p2)returntrue;elesreturnfalse;