Question: You are given a linked list with the following set of nodes in sequence: 36, 25, 55, 32 and 47. The first node is referred

 You are given a linked list with the following set of

You are given a linked list with the following set of nodes in sequence: 36, 25, 55, 32 and 47. The first node is referred by Head reference variable and the second node is referred by P reference variable. Write Java statements to do the following operations: i. Change the value of the third node to 85. Show all possible statements. (2 mark) ii. Create node 77 and insert it after the first node. Show all steps involved. (4 marks) 111. Set a reference variable Q that point to the fourth node. Then delete the pointed node and deallocate the memory. Show all steps involved. (4 mark)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!