TCS
Company
Programming
Output
Tell how to check whether a linked list is circular.
Read Solution (Total 7)
-
- if the linked list is not NULL terminated and all the nodes are linked to other nodes and last node address is not empty .Then it will be a circular linked list.
- 6 years agoHelpfull: Yes(6) No(0)
- When two or more nodes are connected in a manner where no node's address is null then that is known as circular linked .Also when the address of the last node carries the address of the first node.
- 6 years agoHelpfull: Yes(3) No(0)
- if the linked list is persent and the terminated is null and all the node are connected in form cycle
- 6 years agoHelpfull: Yes(0) No(0)
- when this condition satisfies always (node->next!=NULL)
- 6 years agoHelpfull: Yes(0) No(0)
- They have no null pointer
- 6 years agoHelpfull: Yes(0) No(0)
- If the last node of linked list is having the link to first node ,then it is a circular linked list. Which means you have the link of first node in place of NULL in last node.
- 6 years agoHelpfull: Yes(0) No(0)
- store the pointer to head of the linked list and traverse the linked list while traversing compare the pointer of each node with head if head is found then it is circular else if null is encountered then it is not circular linked list
- 5 years agoHelpfull: Yes(0) No(0)
TCS Other Question