## Print alternate nodes of a linked list using recursion

Given a linked list, print alternate nodes of this linked list. Examples : Input : 1 -> 2 -> 3 -> 4 -> 5 ->… Read More »

- Reverse a singly Linked List in groups of given size | Set 3
- Operator Overloading '<<' and '>>' operator in a linked list class
- Construct a Doubly linked linked list from 2D Matrix
- Find intersection point of two Linked Lists without finding the length
- Find the string formed by joining k consecutive nodes of linked list
- Detect Cycle in a Linked List using Map
- Find length of loop in a Linked List using Map
- Delete all odd nodes of a Circular Linked List
- Create a sorted linked list from the given Binary Tree
- Remove all Fibonacci Nodes from a Circular Singly Linked List
- Sum of all Palindrome Numbers present in a Linked list
- Reverse all the word in a String represented as a Linked List
- Swap Kth node from beginning with Kth node from end in a Doubly Linked List
- Move last m elements to the front of a given Linked List
- Remove all nodes from a Doubly Linked List containing Fibonacci numbers
- Sum of all subset sums of a linked list
- Find the largest and second largest value in a Linked List
- Various operations on Fibonacci nodes in a Singly Linked list
- Remove the common nodes in two Singly Linked Lists
- Static and Dynamic data structures in Java with Examples
- Sum and Product of all Fibonacci Nodes of a Singly Linked List
- Design a structure which supports insertion and first non-repeating element in O(1) time
- Create a Circular List Structure For Given Value K Using Recursion
- Program to remove vowels from Linked List
- Program to delete all even nodes from a Singly Linked List
- Sum and Product of all even digit sum Nodes of a Singly Linked List
- Sum of factorials of Prime numbers in a Linked list
- Difference of two Linked Lists using Merge sort
- Remove all the Even Digit Sum Nodes from a Circular Singly Linked List
- Sum and Product of nodes with value as even digit sum in Circular Linked List

Given a linked list, print alternate nodes of this linked list. Examples : Input : 1 -> 2 -> 3 -> 4 -> 5 ->… Read More »

Given a linked list, and a number, check if their exist two numbers whose sum is equal to given number. If there exist two numbers,… Read More »

Given a doubly linked list containing n nodes. The problem is to reverse every group of k nodes in the list. Examples: Recommended: Please try… Read More »

Given a linked list. arrange the linked list in manner of alternate first and last element. Examples: Input : 1->2->3->4->5->6->7->8 Output :1->8->2->7->3->6->4->5 Input :10->11->15->13 Output… Read More »

Given a linked list, check if the the linked list has loop or not. Below diagram shows a linked list with a loop. We have… Read More »

Delete the given linked list using recursion Method 1) If head equal to NULL then linked list is empty, we simply return. 2) Recursively delete… Read More »

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 »

Microsoft visited our campus. Before that, about a month ago they had conducted an online coding test. The interview consisted of 3 f2f rounds. Online… 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 »