## Delete nodes which have a greater value on right side using recursion

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… Read More »

## Program to implement Run Length Encoding using Linked Lists

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 »

## Program to reverse a linked list using Stack

Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack. Examples: Input :… Read More »

## Pairwise swap adjacent nodes of a linked list by changing pointers | Set 2

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 »

## Find the product of first k nodes of the given Linked List

Given a pointer to the head of a singly linked list and an integer k. The task is to find the product of first k… Read More »

## Print the last k nodes of the linked list in reverse order

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 »

## Coviam Software Developer Internship Experience

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 »

## Check if absolute difference of consecutive nodes is 1 in Linked List

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 »

## Replace each node with its Surpasser Count in Linked List

Given LinkedList, replace each node’s value with its surpasser count. That is the count of elements which are greater towards its right. Examples: Input :… Read More »

## Finding Median in a Sorted Linked List

Given A sorted linked list of elements. The task is to find the median in the given Sorted Linked List. We know that median in… Read More »

## Modify contents of Linked List – Recursive approach

Given a singly linked list containing n nodes. Modify the value of first half nodes such that 1st node’s new value is equal to the… Read More »