Reverse part of Singly Linked List

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...
 •  0 comments  •  flag
Share on Twitter
Published on November 03, 2021 13:34
No comments have been added yet.