Articles by Tag #linkedlist

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

Fun C++ project using linked list – Music Player

Hi everyone! 👋 I recently built a terminal-based music player using C++ and linked lists as part of...

Learn More 5 0Aug 5

Understanding Linked Lists in JavaScript

Hey friends 👋 It’s another Tutorial Wednesday, and today we’re stepping up a bit in our DSA journey...

Learn More 4 4Sep 17

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

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

Mastering Pointers in Doubly Linked Lists: Challenges and Solutions

Introduction to Doubly Linked Lists and Pointer Challenges In the vast world of data...

Learn More 0 0Jul 30

Solving LeetCode's "Add Two Numbers" Iteratively and Recursively - Part 1

If you’ve spent any time preparing for software engineering interviews, you’ve likely come across...

Learn More 0 0Sep 14

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

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

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

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

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

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

Swap Kth node from start and end of a LinkedList

Problem TC: O(n) SC: (1) /** * Definition for singly-linked list. * public class ListNode { * ...

Learn More 0 0Jun 25

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