In computer science, Linked List is a basic and linear type data structure like Array. Both are used to store a collection of elements. But there is a difference between Array and Linked List. But In this article, I will write all about Linked List. You can read my article about the Array if you […]

# Tag: Linked List

## Linked List Cycle | LeetCode 141 | Python | Solution

Click here to see the problem details. Read the description first. We will be given a Linked List. We have to determine there is any cycle or not in the linked list. It is an easy problem. See the problem details for the visual representation of the cycle in a linked list. Coding Part Generally, […]

## 83. Remove Duplicates from Sorted List | LeetCode | Python | Solution

Let’s solve a linked list problem. See the problem in Leetcode. Click Here. The problem description is pretty short and simple. It says that we are will be given a linked list. We have to delete all duplicates such that each element appears only once. Suppose the given linked list is: 1 -> 2 -> […]

## 876. Middle of the Linked List | LeetCode | Python | Solution

Here is the problem link. See the problem explanation first and try to understand the problem. It’s an easy linked list problem. We have to return the middle node from a linked list. We don’t have to check the emptiness of the given linked list. We will receive only a non-empty linked list. If there […]

## 237. Delete Node in a Linked List | LeetCode | Solution | Python

This one is a basic linked list problem. Here is the problem link. See the detailed explanation there. This problem is very simple and straightforward. We have to delete the given node. We don’t need to check anything and don’t need to return anything. See the note in the below of the problem explanation. Suppose […]

## Implementation of Stack Using Linked List and List – Code Snippet

The stack is a data structure. To implement a stack data structure, we can use both linked list or array. Below are examples of both types of implementation. Using Linked List Using Python List