Swapping Nodes in a Linked List Leetcode Solution Hindi explained linked list hello world by prince

Опубликовано: 07 Август 2026
на канале: Hello World
13,666
315

This is the video under the series of DATA STRUCTURE & ALGORITHM in a LinkedList Playlist. In this video, we will understand How to Swap Nodes in a Linked List or Swap Kth nodes from ends. Given a singly linked list of size N, and an integer K. You need to swap the Kth node from the beginning and the Kth node from the end of the linked list. Swap the nodes through the links. Do not change the content of the nodes.

Join My Telegram channel for more Updates: https://telegram.me/helloworldbyprince
complete DSA preparation: https://github.com/Prince-1501/Comple...

We also Provide courses on Competitive Programming and Data structure and Algorithms. Please see our Full Playlist on our Channel.

----------------------------------------------------------------------------------------

🟠 1721. Swapping Nodes in a Linked List
You are given the head of a linked list and an integer k.
Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed).
Input: head = [1,2,3,4,5], k = 2
Output: [1,4,3,2,5]

🟣 Swapping Nodes in a Linked List: https://leetcode.com/problems/swappin...
🟢 Code in this video: https://github.com/Prince-1501/Hello_...
🟡 Pdf in this video: https://github.com/Prince-1501/Hello_...
----------------------------------------------------------------------------------------

*Follow me *
LinkedIn►   / iamprince  
Facebook►   / helloworldofficials  
Instagram►   / helloworldbyprince  
Twitter►   / prince_king_  
Telegram► https://telegram.me/helloworldbyprince

----------------------------------------------------------------------------------------

►Our Playlists on:-
🔥 Tree:    • Tree Data Structure & Algorithms Full Cour...  
🔥 Stack & Queue:    • Stack & Queue Data Structure & Algorithms ...  
🔥 Hashing:    • Hashing Data Structure | Complete guide Fo...  
🔥 Graph:    • Graph Data Structure & Algorithms Full Cou...  
🔥 Matrix:    • Matrix (Multidimensional Array) Complete g...  
🔥 Heap:    • Heap Data Structure & Algorithms Full Cour...  
🔥 Linked List:    • Linked List Data Structure & Algorithms Fu...  
🔥 STL:    • Standard Template Library (STL) By Hello W...  
🔥 Leetcode:    • LeetCode Solutions And Interview Preparati...  
🔥Competitive Programming:    • Full course in Competitive programming [ H...  
🔥 C++ Full Course:    • C++ full Course in HINDI  
🔥 Algorithms:    • L-01 || Prefix Sum Array || Algorithms  
🔥 Data Structure:    • Data Structures with Code Practice | Hello...  

------------------------------------------------------------------------

🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟

✨ Tags ✨
LinkedList dsa playlist c++
DSA playlist c++
Swap Kth nodes from ends
LinkedList gfg question
LinkedList Hindi
Linked list Hindi playlist
Swapping Nodes in a Linked List
Nth node from the end of linked list
linked list playlist java
linked list playlist python
linked list interview questions and answers
linked list playlist saurabh shukla
linked list playlist c
linked list playlist cpp
stack playlist
linked list in java tutorial
delete node without head pointer leetcode
linked list
linked list playlist c++
linked list playlist
linked list playlist c++ striver
linked list playlist code with harry
linked list playlist data structures
linked list playlist jenny
linked list playlist Hello world
linked list playlist Hello world by prince
data structures and algorithms in java
data structures and algorithms
data structures and algorithms playlist
data structure playlist
data structure playlist Hindi
engineering college learning
solve leetcode problems
solving leetcode problems python
solving leetcode problems c++
solving leetcode questions
solving all leetcode problems
unable to solve leetcode problems
how to solve leetcode problems effectively
how to solve leetcode medium problems
how to solve leetcode questions
how to solve leetcode hard problems
solve the equation leetcode
college fresher resume sample

Comment "#Princebhai" if you read this 😉😉
#linkedlist #datastructuresandalgorithms #faang