In the line 24 of the code above i have used the condition
while( fast!=NULL and fast->next!=NULL) , i am all getting all test cases correct but if i change this condition to
while( fast->next !=NULL and fast !=NULL) , i dont get all test cases correct.
Why this is happening as both the ways mean the same ?