Skip to content

Category Archives: Linked List

Given a linked list, the task is to find the sum of all the nodes which are greater than the node next to them. Note… Read More
Given a linked list, the task is to find the sum of even and odd nodes in it separately.Examples:   Input: 1 -> 2 -> 3… Read More
A LinkedList is a linear data structure which stores element in the non-contiguous location. The elements in a linked list are linked with each other… Read More
A linked list L0 -> L1 -> L2 -> ….. -> LN can be folded as L0 -> LN -> L1 -> LN – 1… Read More
Given a doubly linked list having exactly one of the node pointing to a random node in the list, the task is to correct this… Read More
Given a linked list containing N nodes and a positive integer K where K should be less than or equal to N. The task is… Read More
Given a singly linked list, remove all the nodes which have a greater value on the right side. Examples: a) The list 12->15->10->11->5->6->2->3->NULL should be changed to… Read More
Given a Linked List as the input. The task is to encode the given linked list using Run Length Encoding. That is, to replace a… Read More
Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack.Examples:   Input : List… Read More
Given a singly linked list, write a function to swap elements pairwise.  Input : 1->2->3->4->5->6->7 Output : 2->1->4->3->6->5->7, Input : 1->2->3->4->5->6 Output : 2->1->4->3->6->5 Recommended:… Read More
Given a pointer to the head of a singly linked list and an integer k. The task is to find the product of the first… Read More
Given a linked list containing N nodes and a positive integer k should be less than or equal to N. The task is to print… Read More
Prerequisite:   XOR Linked List – A Memory Efficient Doubly Linked List | Set 1 XOR Linked List – A Memory Efficient Doubly Linked List |… Read More
Applied through employee referral Round 1: I was sent a link 40 multiple choice questions were there 20 aptitude questions and rest 20 questions from java fundamentals,… Read More
Given a Singly Linked List. The task is to check if the absolute difference between the consecutive nodes in the linked list is 1 or… Read More

Start Your Coding Journey Now!