😐Reverse Linked List

Problem

https://leetcode.com/problems/reverse-linked-list/arrow-up-right

Understanding of the problem

We take the three-pointers prev , current and forw. These pointers help in linking and unlinking the nodes

Edge cases

  • Null linked list

  • Linked list with only one node

Solution

Last updated