Draw a singly linked list where each node contains a letter of your full name without considering any space. [You must show proper locations and indexes.] Do the following operations (stepwise): a....


Draw a singly linked list where each node contains a letter of your full name without
considering any space. [You must show proper locations and indexes.]
Do the following operations (stepwise):
a. Reverse the list (in-place – draw all the steps)
b. Insert ‘P’ in the first position
c. Insert ‘A’ in position 2
d. Left rotate the list 4 times
e. Delete the second element of the list
f. Insert ‘G’ in the last position
g. Right rotate the list 3 times
h. Right shift the list 2 times
i. Sort the list in alphabetical order (show all the steps).


Pleaseee answer in Java..



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here