In this post, we have demonstrated ways in which we can not only reverse a singly linked list but also some part of Singly Linked List. It takes linear time O(N) to Reverse part of Singly Linked List.
Table of contents:
Introduction to reversing Linked ListApproach 1 to Reverse part of Singly Linked ListApproach 2 to Reverse part of Singly Linked List
This is similar to Leetcode problem 92. Reverse Linked List II. Let us get started with Reverse part of Singly Linked List.
Introduction to re...
Published on November 03, 2021 13:34