Linkedlists

Find the middle of a given linked list

The Tortoise and Hare Algorithm is a popular algorithm used to find the median of a linked list. It derives its name from the fable of the tortoise and the hare, where the tortoise wins due to its steady pace. This algorithm prov…

How to Implement DoublyLinkedList in TypeScript

DoublyLinkedList is a data structure that contains a head, tail and length property. Linked Lists consist of nodes, and each node has a value and a pointer to another node or null. The DoublyLinkedList is an extension of Link…

Write a function to delete a Linked List in C#

In computer science, a linked list is a linear collection of data elements whose order is not given by their physical placement in memory. Instead, each element points to the next. It is a data structure consisting of a collecti…

Create custom linked list in C#

A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. In this video tutorial I will show you how to create custom linked list in c#.

How to implement Stack using linked list

In this blog post, I will show you how to implement LinkedList in C# using Stack. What is LinkedList As per the Wikipedia In computer science, a linked list is a linear collection of data elements, whose order is not given by …

How to Find if Linked List contains Loops or Cycles in C#

In this post I will show you how to detect loop in linked list. We can find the loop in the linked list via Floyd’s Cycle-Finding Algorithm, explained here . The algorithm is pretty straightforward: We start at the begi…

How to reverse a linked list in C#

In computer science, a linked list is a fundamental data structure that represents a sequence of data elements. Unlike arrays, the order of elements in a linked list is not determined by their physical placement in memory. Inste…

تحميل المزيد من المشاركات
لم يتم العثور على أي نتائج