You are viewing a single comment's thread. Return to all comments →
c lang
SinglyLinkedListNode* deleteNode(SinglyLinkedListNode* llist, int position) { if((position) == 0) { return llist->next; } llist->next = deleteNode(llist->next, position-1); 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 →
c lang
SinglyLinkedListNode* deleteNode(SinglyLinkedListNode* llist, int position) { if((position) == 0) { return llist->next; } llist->next = deleteNode(llist->next, position-1); return llist; }