You are viewing a single comment's thread. Return to all comments →
my c prgramming code
SinglyLinkedListNode* deleteNode(SinglyLinkedListNode* llist, int position) { SinglyLinkedListNode* temp1=llist; SinglyLinkedListNode* prev; if(llist==NULL){ return llist; } for(int i=0;inext; }prev->next=temp1->next; return llist; }
Seems like cookies are disabled on this browser, please enable them to open this website
Delete a Node
You are viewing a single comment's thread. Return to all comments →
my c prgramming code
SinglyLinkedListNode* deleteNode(SinglyLinkedListNode* llist, int position) { SinglyLinkedListNode* temp1=llist; SinglyLinkedListNode* prev; if(llist==NULL){ return llist; } for(int i=0;inext; }prev->next=temp1->next; return llist; }