## Make a loop at k-th position in a linked list

Given a linked list and a position k. Make a loop at k-th position Examples: Input : Given linked list Output : Modified linked list… Read More »

Quick Links for Linked List

Quizzes |

Videos on Linked List |

Given a linked list and a position k. Make a loop at k-th position Examples: Input : Given linked list Output : Modified linked list… Read More »

Self Organizing list is a list that re-organizes or re-arranges itself for better performance. In a simple list, an item to be searched is looked… Read More »

Given a Doubly Linked List, we are asked to reverse the list in-place without using any extra space. Examples: Input : 1 <–> 2 <–>… Read More »

Given two sorted Doubly circular Linked List containing n1 and n2 nodes respectively. The problem is to merge the two lists such that resultant list… Read More »

Given a doubly linked list. Reverse it using recursion. Original Doubly linked list Reversed Doubly linked list Recommended: Please try your approach on {IDE} first,… Read More »

Given two linked list and a number k. Insert second linked list in to first at k-th position Examples: Input : a : 1->2->3->4->5->NULL b… Read More »

Given a linked list, find its first non-repeating integer element. Examples: Input : 10->20->30->10->20->40->30->NULL Output :First Non-repeating element is 40. Input :1->1->2->2->3->4->3->4->5->NULL Output :First Non-repeating… Read More »

Given a linked list, print reverse of it without modifying the list. Examples: Input : 1 2 3 4 5 6 Output : 6 5… Read More »

Given pointer to the head node of a linked list and a number K, the task is to reverse the first K nodes of the… Read More »

Given a Linked List, display the linked list in reverse without using recursion, stack or modifications to given list. Examples: Input : 1->2->3->4->5->NULL Output :5->4->3->2->1->NULL… Read More »

Given two Linked Lists, find the first common element between given linked list i.e., we need to find first node of first list which is… Read More »

Write a program to reverse the given Doubly Linked List. See below diagrams for example. (a) Original Doubly Linked List (b) Reversed Doubly Linked List… Read More »

Given a singly linked list, with some positive numbers (valid numbers) and zeros (invalid numbers). Convert the linked list in such a way that if… Read More »

Given a doubly linked list, find the largest node in the doubly linked list. Examples: Input : 10->8->4->23->67->88 Largest node is: 88 Output : 88… Read More »