HERE IS THE CODE :-
WHAT IS MY MISTAKE
Hello @hhiteshbansal_40d12e2460a1738e,
while (fast != NULL || fast->next != NULL)
It should be && instead of || as both the conditions need to be true to go inside the loop.
ok got it.
Can you also tell me which book is best for data structure for this course
@hhiteshbansal_40d12e2460a1738e,
I never read a book myself for data structures and algorithms but I suggest two sites GFG and cp-algorithms along with this course and, Coding Blocks discussion forum for your doubts.
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.