Please help me out, i want to display the linked list, reverse it & display then again display it

The reason your program fails to reverse a list is because when the user chooses menu option 9, all they get is a print statement declaring the code isn’t working yet.

At a high level, reversing a linked list can be accomplished like this:

for each element in the input list, from beginning to end:
    remove element from input list
    place element in the beginning of the output list
return output list

Leave a Comment