## Merge first half and reversed second half of the linked list alternatively

Given a linked list, the task is to rearrange the linked list in the following manner: Reverse the second half of given linked list. Rearrange… Read More »

- Print the last k nodes of the linked list in reverse order | Recursive approach
- Coviam Software Developer Internship Experience
- Pairwise swap adjacent nodes of a linked list by changing pointers | Set 2
- Program to reverse a linked list using Stack
- Create linked list from a given array
- Print the last k nodes of the linked list in reverse order | Iterative Approaches
- Convert Singly Linked List to XOR Linked List
- Convert a given Binary Tree to Circular Doubly Linked List | Set 2
- Add Two Numbers Represented by Linked Lists | Set 3
- Bubble Sort for Linked List by Swapping nodes
- Linked List Implementation in C#
- Create new linked list from two given linked list with greater element at each node
- Add the given digit to a number stored in a linked list
- Iterative selection sort for linked list
- Find sum of even and odd nodes in a linked list
- Program to unfold a folded linked list
- Count duplicates in a given linked list
- Reverse a Linked List in groups of given size (Iterative Approach)
- Correct the Random Pointer in Doubly Linked List
- Delete nodes which have a greater value on right side using recursion
- Program to implement Run Length Encoding using Linked Lists
- Delete Nth node from the end of the given linked list
- Sum of nodes in a linked list which are greater than next node
- Sum of all distinct nodes in a linked list
- Divide the given linked list in two lists of size ratio p:q
- Reverse alternate K nodes in a Singly Linked List - Iterative Solution
- Sum of smaller elements of nodes in a linked list
- Maximum sum of K consecutive nodes in the given Linked List
- Insert N elements in a Linked List one after other at middle position
- Check whether the sum of element of a node is equal to the given key value

Given a linked list, the task is to rearrange the linked list in the following manner: Reverse the second half of given linked list. Rearrange… Read More »

Given head of a linked list of integers and an integer k, your task is to modify the linked list as follows: Consider nodes in… Read More »

There were a total of 3 rounds. 1st was online coding, 2nd was written coding and last round was divided in three parts, basically 3… Read More »

Given a doubly linked list containing N nodes and a number X, the task is to delete all the nodes from the list that are… Read More »

Given a matrix, the task is to construct a linked list matrix in which each node is connected to its right and down node. Example:… Read More »

Given a linked list, rearrange it such that converted list should be of the form a < b > c < d > e <… Read More »

We have discussed Floyd’s fast and slow pointer algorithms in Detect loop in a linked list. The algorithm is to start two pointers, slow and… Read More »

Given a binary tree, flatten it into linked list in-place. Usage of auxiliary data structure is not allowed. After flattening, left of each node should… Read More »

Write a C function that moves first element to end in a given Singly Linked List. For example, if the given Linked List is 1->2->3->4->5,… Read More »

Prerequisite – Hashing Introduction, Hashtable using Singly Linked List & Implementing our Own Hash Table with Separate Chaining in Java Implementing hash table using Chaining… Read More »

Sort the given biotonic doubly linked list. A biotonic doubly linked list is a doubly linked list which is first increasing and then decreasing. A… Read More »

Given a set of strings, find the longest common prefix. Examples: Input : {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output : “gee” Input : {“apple”, “ape”, “april”}… Read More »

Given a linked list with n nodes, reverse it in the following way : If n is even, reverse it in group of n/2 nodes.… Read More »

Given a singly linked list, delete all occurrences of a given key in it. For example, consider the following list. Input: 2 -> 2 ->… Read More »

Prerequisite: Merge Sort for Linked Lists Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes… Read More »