In Java,
The following is a class definition of a linked list Node:
class Node{int info;Node next;}Assume that head references a linked list and stores in order, the int values 5, 2 and 9. Show the instructions needed to move the value 2 in front of the value 5 so that the list is now 2, 5 and 9.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here