Articles by Tag #linkedlist

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Introduction to Linked Lists in Python: A Comprehensive Guide 🔗

What is a Linked List? A linked list is a fundamental data structure that consists of...

Learn More 5 2Aug 14 '24

How to Implement Singly Linked List in Python

class Node: def __init__(self,value): self.value = value self.next = None class...

Learn More 1 0Sep 9 '24

Leetcode #2.Add Two Numbers

Problem You are given two non-empty linked lists representing two non-negative integers. The digits...

Learn More 1 0Nov 12 '24

Implementing Linked Lists in Python

How implementing a Linked List in Python can help you understand this data structure

Learn More 1 1Sep 30 '24

I have been told to avoid linked lists.

I've been told to avoid linked lists because their elements are scattered everywhere, which can be...

Learn More 0 0Mar 23

How to reverse a linked list in simple and optimal way in java

To reverse a linked list in Java, you can use an iterative approach which is both simple and optimal...

Learn More 0 0Aug 12 '24

DSA: Linked List Javascript

LinkedList is the dynamic data structure, as we can add or remove elements at ease, and it can even...

Learn More 0 0Aug 2 '24

Odd-even LinkedList

Problem We have to keep index i tracking the node values if i is odd then put them in a different...

Learn More 0 0Jul 20 '24

Pattern 6: LinkedList

List of problems I have solved so far Easy Medium Hard List of problems I have...

Learn More 0 0Dec 14 '24

Add 1 to the list

Problem tc :O(n), sc:O(1) /* class Node{ int data; Node next; Node(int x){ ...

Learn More 0 0Apr 6

Understanding Singly and Doubly Linked Lists with Real-Life Examples and JavaScript Code

Introduction Linked lists are one of the fundamental data structures used in computer science. They...

Learn More 0 0Feb 24

This turned out to be my best-performing technical article. Unfortunately I do not have the time to write more like it.

Linked List Implementation in C with User Input Ikechukwu...

Learn More 0 0Jan 14

Copy Linked List with random pointer

Problem tc :O(n) where n is no. of nodes in the original linked list Iterative approach: /* //...

Learn More 0 0Apr 18

Leetcode LinkedList Questions

Reverse Linked List (LeetCode #206) Difficulty: Easy Concepts: Iterative and recursive...

Learn More 0 0Oct 9 '24

Finally realized how reverse list work

the core is prev pointer is storing the current while(current){ next = current.next current.next =...

Learn More 0 0Mar 24

Middle Of the Linked List Solution | DS Topic |Leetcode

https://leetcode.com/problems/middle-of-the-linked-list/solutions/6185567/middle-of-the-linked-list-s...

Learn More 0 0Dec 25 '24

Sort the given LinkedList

problem note: the sort() method can be used to merge to sorted linked list /** * Definition for...

Learn More 0 0Jul 22 '24

Merge two sorted linked lists in java simple and optimal way

Merging two sorted linked lists is a common problem that can be solved efficiently. Here's how you...

Learn More 0 0Aug 12 '24