Walking on water and developing software from a specification are easy if both are frozen.Edward V Berard Edward V Berard

Reverse Linked list

Language Java | Level Intermediate | Category Data structure | September 5, 2015 9:26 pm

Data structure Description

Write a program to reverse the linked list. The head item should move to tail and tail item should move to head.

Example Given linked list 22->45->67->90->85 and return reverse linked list 85->90->67->45->22.



Insert items in LinkedList:9, 43, 34, 11, 78, 55
Items in Linked List before reverse:9->43->34->11->78->55->NULL
Items in Linked List After reverse :55->78->11->34->43->9->NULL



No comments available!

Please login to add comments.