In this video, I have explained how to reverse a linked list. I have explained 3 methods to solve this:
1. Using stack
2. Iterative method
3. Using recursion
Source code: https://github.com/fit-coder/fitcoder...
00:00 Introduction
00:09 Problem explanation
00:34 Method 1 - Using stack
02:05 Method 2 - Iterative
06:41 Method 3 - Recursive
10:34 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