## Multiply two numbers represented by Linked ListsJune 14, 2017

Given two numbers represented by linked lists, write a function that returns the multiplication of these two linked lists. Examples: Input : 9->4->6 8->4 Output… Read More »

## Union and Intersection of two linked lists | Set-2 (Using Merge Sort)

Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in the given lists. Order of elements… Read More »

## Check whether the length of given linked list is Even or OddJune 10, 2017

Given a linklist, task is to make a function which check whether the length of linklist is even or odd. Examples: Input : 1->2->3->4->NULL Output… Read More »

## Linked List representation of Disjoint Set Data StructuresJune 3, 2017

Prerequisites : Union Find (or Disjoint Set), Disjoint Set Data Structures (Java Implementation) A disjoint-set data structure maintains a collection S = {S1, S2,…., Sk}… Read More »

## Remove every k-th node of the linked listMay 29, 2017

Given a singly linked list, Your task is to remove every K-th node of the linked list. Examples: Input : 1->2->3->4->5->6->7->8 k = 3 Output… Read More »

## Partitioning a linked list around a given value and If we don’t care about making the elements of the list “stable”May 22, 2017

Given a linked list and a value x, partition a linked list around a value x, such that all nodes less than x come before… Read More »

## Remove all occurrences of duplicates from a sorted Linked ListMay 17, 2017

Given a sorted linked list, delete all nodes that have duplicate numbers (all occurrences), leaving only numbers that appear once in the original list. Examples:… Read More »

## Circular Queue | Set 2 (Circular Linked List Implementation)April 25, 2017

Prerequisite – Circular Singly Linked List We have discussed basics and how to implement circular queue using array in set 1. Circular Queue | Set… Read More »

## Doubly Circular Linked List | Set 2 (Deletion)April 23, 2017

We have discussed doubly circular linked list introduction and its insertion. Let us formulate the problem statement to understand the deletion process. Given a ‘key’,… Read More »