recategorized by
393 views

1 Answer

1 votes
1 votes

It deletes the node P from the linked list.

Reason:

We are updating the references for the nodes to the left and right of node P. Hence, the right pointer of the node to the left of P will point to the node to the right of P. Also the left pointer of node to the right of P will point to the node to the left of P. Once, these operations are done, we can no longer access node P. 

 

Related questions

0 votes
0 votes
1 answer
2
Sumit Singh Chauhan asked Aug 18, 2018
3,461 views
What is time complexity of fun()?int fun(int n){ int count = 0; for (int i = n; i 0; i /= 2) for (int j = 0; j < i; j++) count += 1; return count;}(A) O(n^...
0 votes
0 votes
2 answers
4
Sarvottam Patel asked Jan 13, 2017
427 views
A and B are two sets. If |A| = 5 , |B| = 3 , then, the number of onto functions from A to B are ___ ?(A) 35(B) 150(C) 29(D) 27