LL Lenght

 void len(node*head){

    node*temp=head;

    int count=0;

    while(temp!=NULL){

        temp=temp->next;

        count++;

    }

    cout<<count<<NULL;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings