May 18 · 8 min read · Introduction In this article, we will look at fundamentals of linked lists. Linked list is a really powerful data structure especially when you deal with insertion and deletion. Imagine an array with
Join discussion
Feb 9 · 2 min read · In this article we will understand the approach of the reverse Node with Kth Group. This is a Linkedlist hard question. We will solve it through javascript and see the logic. Code var getKthNode = function(curr, k){ while(curr && k>0){ cu...
Join discussion
Feb 7 · 2 min read · You are given a linked list where: Each node contains a single digit (0–9) Digits are stored in normal order The linked list represents a number Example: Input: 1 → 9 → 9 Number: 199 Output: 2 → 0 → 0 Number: 200 🧠 Step-by-Step Approach Step...
Join discussion
Feb 6 · 2 min read · 🧠 Brute Force Approach (Not Optimal) A simple way is: Convert linked list into an array Check if array is palindrome But this uses extra memory: Time: O(n) Space: O(n) ❌ 🧠Optimal Approach 1. Find the Middle of the Linked List We use two poi...
Join discussion
Jan 28 · 4 min read · In our last few articles, we watched Afrid, Piyush, and Hitesh learn how to save their code using Git commands. They know how to drive the car, but they don't know how the engine works. Today, we are going to open the hood. Have you ever wondered: Wh...
Join discussion
Jan 8 · 2 min read · 🗓️ Date: January 9, 2026📌 Challenge:🧩 Problem: Intersection of Two Linked Lists – LeetCode #160 (Easy)💻 Topic: Two Pointer, Linked List ✅ Problem Statement (Summary): Goal: Given the heads of two singly linked lists headA and headB, return the n...
Join discussion
Jan 8 · 3 min read · গত আর্টিকেল এ আমরা DLL এর Insertion , Traversing অপারেশন নিয়ে আলোচনা করেছিলাম। এই পার্টে আমরা DLL এর Deletion নিয়ে আলোচনা করবো। SLL Deletion এর মতোই DLL Deletion। তবে যেহেতু SLL এর প্রতিটা নোড তারপরের নোডের লিঙ্ক বা মেমরি লোকেশন স্টোর করে সেহেতু Inse...
Join discussion
Jan 7 · 8 min read · Ever wondered why we have linked lists when arrays seem to do the job just fine? Turns out, arrays have some pretty annoying limitations. And linked lists? They were literally invented to fix those problems. Let me break it down. The Problem With Arr...
Join discussionJan 7 · 2 min read · 🗓️ Date: January 8, 2026📌 Challenge:🧩 Problem 1: Linked List Cycle – LeetCode #141 (Easy)🧩 Problem 2: Middle of the Linked List – LeetCode #876 (Easy)💻 Topic: Two Pointer, Linked List, Fast & Slow Pointer ✅ Problem Statement (Summary): 🔹 Probl...
Join discussion