Linked List in Python

Linked List in Python

A linked list is one of the basic data structures present in computer science. To represent a linke…

Convert a Binary Tree to Doubly Linked List

Convert a Binary Tree to Doubly Linked List

You are given a Binary Tree. Your task is to convert it into a doubly-linked list. The left and rig…

Merge Sort for Linked Lists

Merge Sort for Linked Lists

There are a plethora of sorting algorithms present for arrays like the bubble sort, insertion sort,…

Reverse a Linked List

Reverse a Linked List

Linked List is one of the most important data structures in computer science due to several reasons…

Clone a Singly Linked List

Clone a Singly Linked List

You are given a singly linked list, having n nodes in it with each node having a pointer that is po…

Clone a Linked list with the Random Pointer

Clone a Linked list with the Random Pointer

Given a linked list, in which every node contains the next pointer. They also contain an additional…

How to find and remove loops in a Linked List?

How to find and remove loops in a Linked List?

Question Given a Linked List, how can you detect and remove a loop from that linked list efficie…

Circular Doubly Linked List

Circular Doubly Linked List

A circular doubly list is a combination of doubly and circular lists; it inherits the properties of…