LC. 206 Reverse a Linked List
๐: Reverse Linked List - LeetCode
Problem Statement
Given the head of a singly linked list, reverse the linked list and return the new head.
Example
Input:
1 -> 2 -> 3 -> 4 -> 5
Output:
5 -> 4 -> 3
simranbali-dsa.hashnode.dev6 min read