## Find first node of loop in a linked list

Write a function findFirstLoopNode() that checks whether a given Linked List contains loop. If loop is present then it returns point to first node of… Read More »

Quick Links for Linked List

Quizzes |

Videos on Linked List |

Write a function findFirstLoopNode() that checks whether a given Linked List contains loop. If loop is present then it returns point to first node of… Read More »

Given a singly linked list, a position and an element, the task is to write a program to insert that element in a linked list… Read More »

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 »