(abefore the insertion(bcreation of new node(cafter the insertion note that we set the next link for the tail in (bbefore we assign the tail variable to point to the new node in (ccode fragment inserting new node at the end of singly linked list this method works also if the list is empty note that we set the next pointer for the old tail node before we make variable tail point to the new node removing an element in singly linked list