X394: changeHeadPointer1

Consider the following class definition:
   class Link{
      Object data;
      Link next;
   }
Use a single assignment statement to make the variable p refer to the Node with info '2' given that the list contains [1,2,3] and points to 1.

Initial Setup Final Configuration

Your Answer:

Reset
Visualize

Feedback

Your feedback will appear here when you check your answer.