Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Misc
7.7K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Linked List
666+ articles
Samsung
317+ articles
Linked Lists
303+ articles
Flipkart
258+ articles
MAQ Software
119+ articles
Tortoise-Hare-Approach
20 posts
Recent Articles
C++ Program For Inserting Node In The Middle Of The Linked List
Last Updated: 23 July 2025
Given a linked list containing n nodes. The problem is to insert a new node with data x at the middle of the list. If n is even, then insert the new node after the (n/2)th...
read more
Linked List
C++ Programs
DSA
Tortoise-Hare-Approach
Java Program For Inserting Node In The Middle Of The Linked List
Last Updated: 23 July 2025
Given a linked list containing n nodes. The problem is to insert a new node with data x at the middle of the list. If n is even, then insert the new node after the (n/2)th...
read more
Linked List
Java Programs
DSA
Tortoise-Hare-Approach
Python Program For Inserting Node In The Middle Of The Linked List
Last Updated: 23 July 2025
Given a linked list containing n nodes. The problem is to insert a new node with data x at the middle of the list. If n is even, then insert the new node after the (n/2)th...
read more
Linked List
Python Programs
DSA
Tortoise-Hare-Approach
Javascript Program For Inserting Node In The Middle Of The Linked List
Last Updated: 23 July 2025
Given a linked list containing n nodes. The problem is to insert a new node with data x at the middle of the list. If n is even, then insert the new node after the (n/2)th...
read more
JavaScript
Tortoise-Hare-Approach
C++ Program For Making Middle Node Head In A Linked List
Last Updated: 23 July 2025
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list.Examples:Input: 1 2 3 4 5 Output: 3 1 2 4...
read more
Misc
Linked List
C++ Programs
DSA
Tortoise-Hare-Approach
C Program For Making Middle Node Head In A Linked List
Last Updated: 23 July 2025
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list.Examples:Input: 1 2 3 4 5 Output: 3 1 2 4...
read more
Misc
Linked List
C Programs
DSA
Tortoise-Hare-Approach
Java Program For Making Middle Node Head In A Linked List
Last Updated: 23 July 2025
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list.Examples:Input: 1 2 3 4 5 Output: 3 1 2 4...
read more
Misc
Linked List
Java Programs
DSA
Tortoise-Hare-Approach
Python Program For Making Middle Node Head In A Linked List
Last Updated: 23 July 2025
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list.Examples:Input: 1 2 3 4 5 Output: 3 1 2 4...
read more
Misc
Linked List
Python Programs
DSA
Tortoise-Hare-Approach
Python-DSA
Javascript Program For Making Middle Node Head In A Linked List
Last Updated: 23 July 2025
Given a singly linked list, find middle of the linked list and set middle node of the linked list at beginning of the linked list.Examples:Input: 1 2 3 4 5 Output: 3 1 2 4...
read more
JavaScript
Tortoise-Hare-Approach
JavaScript-Questions
C++ Program To Delete Middle Of Linked List
Last Updated: 23 July 2025
Given a singly linked list, delete the middle of the linked list. For example, if the given linked list is 1->2->3->4->5 then the linked list should be modified to 1->2->4...
read more
Linked List
C++ Programs
DSA
Microsoft
Flipkart
Tortoise-Hare-Approach
Java Program To Delete Middle Of Linked List
Last Updated: 23 July 2025
Given a singly linked list, delete the middle of the linked list. For example, if the given linked list is 1->2->3->4->5 then the linked list should be modified to 1->2->4...
read more
Linked List
Java Programs
DSA
Microsoft
Flipkart
Tortoise-Hare-Approach
Javascript Program To Delete Middle Of Linked List
Last Updated: 23 July 2025
Given a singly linked list, delete the middle of the linked list. For example, if the given linked list is 1-2-3-4-5 then the linked list should be modified to 1-2-4-5If t...
read more
JavaScript
Microsoft
Flipkart
Tortoise-Hare-Approach
C++ Program For Detecting Loop In A Linked List
Last Updated: 23 July 2025
Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop.The following are different ways of doing this.Solution 1: Has...
read more
C++
Linked Lists
loop
Amazon
Samsung
Accolite
MAQ Software
Tortoise-Hare-Approach
C Program For Detecting Loop In A Linked List
Last Updated: 23 July 2025
Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop.Solution: Floyd's Cycle-Finding AlgorithmApproach: This is the...
read more
C Language
Linked Lists
loop
Amazon
Samsung
Accolite
MAQ Software
Tortoise-Hare-Approach
Python Program To Delete Middle Of Linked List
Last Updated: 23 July 2025
Given a singly linked list, delete the middle of the linked list. For example, if the given linked list is 1->2->3->4->5 then the linked list should be modified to 1->2->4...
read more
Linked List
Python Programs
DSA
Microsoft
Flipkart
Tortoise-Hare-Approach
1
2