Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is not given, can we delete the node X from given linked list?

Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is not given, can we delete the node X from given linked list? Correct Answer Possible if X is not last node

Following are simple steps. struct node *temp = X->next; X->data = temp->data; X->next = temp->next; free(temp);

Related Questions

Consider a singly linked list of the form where F is a pointer to the first element in the linked list and L is the pointer to the last element in the list. The time of which of the following operations depends on the length of the list?
Consider the problem of reversing a singly linked list. To take an example, given the linked list below, the reversed linked list should look like Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in O(1) space?
Which of the following statements are not correct with respect to Singly Linked List(SLL) and Doubly Linked List(DLL)?