open_in_new
content_copy
void insertAtTail(node *&tail, int d) { node *temp = new node(d); tail->next = temp; tail = temp; }