Reverse Linked List

Reverse a linked list. Do it in-place and in one-pass.

For example:
Given 1->2->3->4->5->NULL,

return 5->4->3->2->1->NULL.

PROBLEM APPROACH :

Complete solution code in the hints

Interview Code Editor
Hints
  • Complete Solution
4425 successful submissions.
Click here to jump start your coding interview preparation