Sir doubt in circular linkedList

sir here as shown in video print function isnt right because condition we used is
while(temp->next!=head)

but here when there is only one loop which will have self loop this condition will becomes false and it wont print that value isnt it?

@tejasddongare yes just check that case manually no issues

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.