In this video, I have explained how to reverse a linked list between 2 positions.
Given the head of a singly linked list and two integers left and right, reverse the nodes of the list from position left to position right, and return the reversed list.
This question is also known as following:
Reverse Sublist of Linked List
Reverse specified portion of a Linked List
Reverse a Linked List from position M to N
Source code: https://github.com/fit-coder/fitcoder...
00:00 Introduction
00:08 Problem Explanation
01:39 Solution
09:27 Implementation
Reverse a Linked List: • Reverse A Linked List | 3 Methods
Reverse Sublist of a Linked List: • Reverse Sublist of Linked List | Reverse L...
Reverse Nodes in k-Group: • Reverse Nodes in K-Group | Reverse Linked ...
-------------------------------------------------------------
I live in New Delhi and love explaining programming concepts. I have done M.Tech(BITS Pilani) + B.Tech(PEC, Chandigarh) in Computer Science and am currently working as a software engineer in a MNC.
If you like my content, please like, share my videos and subscribe to the channel.
-------------------------------------------------------------
For Linked List tutorials, please refer to the below playlist:
• Linked List
For Binary tree tutorials, please refer to the below playlist:
• Tree Data Structures
For Binary search tree tutorials, please refer to the below playlist:
• Binary Search Tree
For in-depth Graph theory and implementation details, please refer to the below playlist:
• Graph Algorithms
#DataStructure,#LinkedList,#FitCoder,#Algorithm,#competitiveprogramming,#faang,#codinginterview