diff --git a/Check If Circular Linked List b/Check If Circular Linked List new file mode 100644 index 0000000..72bfa42 --- /dev/null +++ b/Check If Circular Linked List @@ -0,0 +1,11 @@ +bool isCircular(Node *head) +{ + // Your code here + Node*temp=head; + head=head->next; + while(temp!=head && head!=NULL){ + head=head->next; + } + if(temp==head){return 1;} + return 0; +}