L3. Introduction to Doubly LinkedList | Insertions and Deletions

  Рет қаралды 185,638

take U forward

take U forward

Күн бұрын

Пікірлер: 194
@pardhi8959
@pardhi8959 Жыл бұрын
Hope striver is doing extremely well ❤
@shreyasmekap1452
@shreyasmekap1452 6 ай бұрын
"extremely" echoed in my brain for 10s
@ShreyasRaut-tk2xx
@ShreyasRaut-tk2xx Ай бұрын
also a hope striver is doing extremely well ???
@harshwardhan5015
@harshwardhan5015 5 ай бұрын
Doubly Linked List - 1:25 Representation of DLL - 2:47 Array to DLL (CPP) - 4:00 Array to DLL (Java) - 12:14 Delete head DLL(cpp) - 14:32 Delete head DLL(Java) - 19:24 Delete Tail DLL (cpp) - 20:15 Delete Tail DLL (java) - 24:50 Delete Kth (cpp) - 25:41 Removing given node - 39:43 Insert node before (head) - 44:54 Insert node before (Tail) - 47:25 Insert node before (kth node) - 52:40 Insert before given node - 58:00
@AmanSharma-xy1qm
@AmanSharma-xy1qm 11 ай бұрын
All the video lectures and the articles helped me a lot to gain confidence in DSA and will be helping me in the interviews. Thank you Striver bhaiya for bringing such amazing content for free.
@sunitasharma3016
@sunitasharma3016 4 ай бұрын
bhaiya aap konse year mein ho
@AmanSharma-xy1qm
@AmanSharma-xy1qm 4 ай бұрын
@@sunitasharma3016 I am 2024 graduate, and currently I'm working as a software developer in a company with 5 LPA. And striver only responsible to get me there. One advice to all is follow his content blindly ❤️
@darkwarrior6767
@darkwarrior6767 4 ай бұрын
@@sunitasharma3016 2nd
@HARSHITJAIN-dk4ms
@HARSHITJAIN-dk4ms 21 күн бұрын
Love that all the elements in any data structure my guy here makes are so understanding and polite even in the face of certain death❤
@saswatrath4646
@saswatrath4646 7 ай бұрын
Even inserting before parts felt easy to me and I coded those by myself. Thanks striver! you have been an awesome teacher.
@BBITIANsujay
@BBITIANsujay 7 ай бұрын
You making the DSA like everyday its a cup of tea , what a man.... >>>>>> any paid courses
@SURYAPARIDA-r7i
@SURYAPARIDA-r7i 2 ай бұрын
idk why but really hats off to you , after learning The first thirteen minutes of content i got so confident that i promptly went for solving LRU Cache 😂 ( though couldnt solve it , i will definitely do after watching the complete content ) but i am now confident on my Linear DS Primers !!! Thank You
@Ankita-h2x9r
@Ankita-h2x9r 2 ай бұрын
He's such an amazing teacher ...... he's a life saver...may he do good in his life
@neerajnishad3200
@neerajnishad3200 9 ай бұрын
one of the great DSA lecture on youtube..........i mean only one
@harshitgarg2820
@harshitgarg2820 Жыл бұрын
Completed all the 10 ques and moving to the next video🚀🚀
@Prasanna-im1zy
@Prasanna-im1zy 2 ай бұрын
Where are they
@JunaidShareef-j4u
@JunaidShareef-j4u 7 ай бұрын
Bhai you literally made DS & ALGO easy💌💘 your way of teaching touches skies😎
@roshangeorge97
@roshangeorge97 Жыл бұрын
Please like the video whether you like the video or not, please like the video he is putting up a lot of effort on it..
@Me-nh3pt
@Me-nh3pt 3 ай бұрын
00:04 Doubly linked list allows traversal in both directions. 02:03 Doubly linked list stores data and points to both next and previous nodes. 06:21 Adding a new node to the doubly linked list 08:35 Creating a doubly linked list from an array 13:11 Converting array to doubly linked list 15:11 Deleting from a doubly linked list with multiple elements 19:20 Implementing delete operations on a doubly linked list. 21:17 Ensure the new tail of the linked list points to null and disconnect from the previous element. 25:21 Deleting elements from a doubly linked list 27:22 Traversing a Doubly Linked List to find the kth node 31:46 Handling deletion in Doubly LinkedList 33:55 Deleting a node in a Doubly LinkedList 37:57 Deleting a given node from a doubly linked list involves changing pointers. 40:00 Explaining how to delete a node in a Doubly LinkedList 44:06 Learning about insertion of nodes in doubly linked list. 46:19 Inserting before head and tail of a linked list 50:19 Inserting before the tail in a doubly linked list. 52:27 Inserting before the Kth node of a linked list 56:51 Inserting before a given node in a Doubly LinkedList 58:50 Understanding insertion of nodes in a doubly linked list 1:02:40 Deletion of tail using Doubly LinkedList Crafted by Merlin AI.
@shwetachoudhary9003
@shwetachoudhary9003 Күн бұрын
each and every logic get into my head❤ thank you soo much sir❤ i am addicted to this playlist now
@AbhishekVerma-yw1ps
@AbhishekVerma-yw1ps Жыл бұрын
Great work sir, iske baad String ki playlist aa jaye toh accha rahega kyunki baaki KZbin ne String utna deep dive kiya nhi in terms of algorithms and questions. So, if possible please bring string playlist in near future. Thanks ❤
@codeguy21
@codeguy21 Жыл бұрын
strings are vast , no matter how much ever we solve there can still be a question which we may not be able to do , instead ask for stack queue or heaps , greedy etc
@AbhishekVerma-yw1ps
@AbhishekVerma-yw1ps Жыл бұрын
@@codeguy21 stacks, queues or heaps are easier topic. There are 4-5 patterns on each if you understand the pattern you can solve. Also many other KZbinrs have taught these topics. But string is something that is not much touched yet and is also important in terms of interview. I myself faced string questions in 7 interviews out of 10.
@Lucifer0872
@Lucifer0872 Жыл бұрын
​@@AbhishekVerma-yw1psaverage kiitian
@unknownplanet699
@unknownplanet699 11 ай бұрын
@@AbhishekVerma-yw1ps can you tell the patterns .
@unknownplanet699
@unknownplanet699 11 ай бұрын
@@AbhishekVerma-yw1ps can you tell the patterns .
@softwareengineering101
@softwareengineering101 11 ай бұрын
@38:46 If k is out of bound adding below code after while statement would cover that scenario if (kNode == null) { return head; // K is larger than the length of the list }
@CinematicClips-uz3mk
@CinematicClips-uz3mk 4 ай бұрын
The k ranges from 1 to N 25:51
@bhagyashreeaher7429
@bhagyashreeaher7429 10 ай бұрын
Thank you so much Striver for amazing series !!!! Great work👍👌
@lakshyadalal8296
@lakshyadalal8296 3 ай бұрын
Thanks a lot dude for adding question links in the description 👌
@shamanthhegde2820
@shamanthhegde2820 3 ай бұрын
I want to point out a small mistake aside from that the tutorial is fire. when you are deleting head make sure there is a node present when moving the pointer because you have to make the prev pointer of the next node null. This issue can occur when there is only one element present in DLL
@PCCOERCoder
@PCCOERCoder Күн бұрын
Lecture successfully completed on 26/11/2024 🔥🔥
@himanshupokhriyal6883
@himanshupokhriyal6883 9 ай бұрын
Hello Striver Bhaiya , I have doubt in a specific part of the code . My doubt is in inserting a node at Kth node problem. Like I am thinking of an edge case in which if(head == NULL) && (head == NULL) which basically mean list is empty and list has only 1 element respectively right and if (K > 1) which basically mean it is telling us to insert a node at the position where node is not available right and then for that we have to return NULL . So, basically I wanted to tell my point on this case , I know you would have also tell that point but might have forgetten while teaching. By the way Thank You Bhaiya for creating this wonderful DSA playlist , it really really helped me. Hope in future I could meet you in person. Thank You Bhaiya
@Vvvvviieiei123
@Vvvvviieiei123 Жыл бұрын
lecture 3 done,love u bhaiya
@sahilmujawar8217
@sahilmujawar8217 28 күн бұрын
great work bhaiya💌
@komalrathore5145
@komalrathore5145 Жыл бұрын
Thanks striver for this free series
@Future_software_enginneer
@Future_software_enginneer Жыл бұрын
Your english is also very simple so I am able to understand easily
@sahilrao4592
@sahilrao4592 2 ай бұрын
but your english is not good.
@Future_software_enginneer
@Future_software_enginneer 2 ай бұрын
@@sahilrao4592 yes I know already 😂
@sahilrao4592
@sahilrao4592 2 ай бұрын
@@Future_software_enginneer nice you edited 😁😆
@COMRADE_ARMY
@COMRADE_ARMY Ай бұрын
Striver is doing extremely well
@nitinsaxena4812
@nitinsaxena4812 19 күн бұрын
Bro make DSA my addiction
@S3aw0lf
@S3aw0lf 9 ай бұрын
For doing deletionAtTail instead of storing back in another Node we can just do tail.back.next. Anyone reading the comment correct me if I'm wrong. Great explanation and superb playlist
@manas4656
@manas4656 2 ай бұрын
well that is a smart way of doing it, I will trying doing it this way ❤
@oyeesharme
@oyeesharme 4 ай бұрын
thanks for your efforts bhaiya
@doremon81072
@doremon81072 7 ай бұрын
Thanku you bhaiya making topics so easy. :)
@adebisisheriff159
@adebisisheriff159 9 ай бұрын
Thanks Striver for the help all the time!!!!
@krishnagarg2583
@krishnagarg2583 Ай бұрын
for the part tail deletion we can simply traverse to the last node and do temp->back->next = nullptr in cpp and can simply do it in one line and wont be making a new temporary variable to store previous Node *DeleteTail(Node *head) { if (head == nullptr) { return nullptr; } // if the list has only one node if (head->next == nullptr) { delete head; return nullptr; } Node *temp = head; while (temp->next != NULL) { temp = temp->next; } temp->back->next = nullptr; temp->back = nullptr; // its not compulsary to do as we delete temp delete temp; return head; }
@preetikkasundareswaran5894
@preetikkasundareswaran5894 10 ай бұрын
Hey Striver...We love you as always😍
@sulthan6131
@sulthan6131 Жыл бұрын
Bro going to upload the whole album
@SaiSumanthKovuru
@SaiSumanthKovuru Жыл бұрын
Such a great heart to share knowledge!
@itachiuchiha-bo7jw
@itachiuchiha-bo7jw Жыл бұрын
please sir i havent found any great source for strings and facing so many problem please sir make a playlist for Strings that would be a great help
@kartikg9970
@kartikg9970 9 ай бұрын
yes sir please make a playlist for strings
@dhruvsovasaria
@dhruvsovasaria Ай бұрын
thankyou
@kajalsharma5952
@kajalsharma5952 2 ай бұрын
true dsa treasure
@shivamsays2861
@shivamsays2861 3 ай бұрын
Thankyou so much❤❤
@PAVANKUMAR-q1h5y
@PAVANKUMAR-q1h5y 4 ай бұрын
striver when will you do strings part
@nerellapavan4320
@nerellapavan4320 3 ай бұрын
Yaa please
@shubha_jagadeesh
@shubha_jagadeesh 8 күн бұрын
Love with ur vedios ❤
@AmanKumar-mp2xw
@AmanKumar-mp2xw 3 ай бұрын
for deleting the kth node, suppose if DLL length is 4 and my k=8, the while loop will stop when temp is the last node, making prev as second to last node, and front will become the nullptr, that means even though k is beyond the length of linked list , we still removed the last node because front was null
@hareshnayak7302
@hareshnayak7302 7 ай бұрын
Understood,Thanks striver for this amazing video .
@saitejanedunoori5451
@saitejanedunoori5451 5 ай бұрын
great work and thank you THALA
@mamun3192
@mamun3192 Жыл бұрын
best explanation ever!🎉
@AsifWest-wp5ke
@AsifWest-wp5ke 7 ай бұрын
Thankyou...Help people God will help you
@publicuses8589
@publicuses8589 Жыл бұрын
Striver bhaiya u r the besssttttttttt
@striverdaaadi
@striverdaaadi 10 ай бұрын
striver is best😍😍
@prasanjit.bhanja
@prasanjit.bhanja 5 ай бұрын
Legend striever ❤
@ASaicharan-zz8jn
@ASaicharan-zz8jn 4 ай бұрын
great thanks to TUF
@Abhishek7Shah
@Abhishek7Shah 7 күн бұрын
Understood bhyiayaa
@RaghavN-rd5zw
@RaghavN-rd5zw 6 ай бұрын
Thank you so much Striver!!!
@Dipanshutripathi2407
@Dipanshutripathi2407 11 ай бұрын
Done and dusted like never before.
@TON-108
@TON-108 10 ай бұрын
Thank You Bhaiya.... Understood!!!
@KartikeyTT
@KartikeyTT 6 ай бұрын
Bhaiya many of the problem links in the description are not correct. Please look into that
@MayankisG
@MayankisG 3 ай бұрын
Best 👽👽
@fitofficial6510
@fitofficial6510 23 күн бұрын
46:11 the function name insertBeforeHead is misleading if we’re handling the case where head might be NULL. When head is NULL, there’s technically no "head" to insert before. Otherwise, top-notch video :)
@PremShinde-p4q
@PremShinde-p4q 7 ай бұрын
Instead of taking new variable prev, we can also do like, tail.back.next = null; tail.back=null; right??
@tommybhaiya598
@tommybhaiya598 7 ай бұрын
Bro you are fabulous
@DrOnZeR2022
@DrOnZeR2022 4 ай бұрын
I think there should be a correction in deletation in the case when front ==NULL) previous should be point to null ptr prev->next=null ptr
@SPonharshitaP
@SPonharshitaP 10 ай бұрын
Sir when will you post videos for sliding window techniques, and problems on stacks and queues ?
@Tbm4545
@Tbm4545 28 күн бұрын
14:10 deltion
@ashj1165
@ashj1165 2 ай бұрын
hey striver, thanks for the series. do we have to assign prev->next = nullptr? as we are eventually deleting prev itself, will the next pointer cause any problems?
@RajNamdev_19
@RajNamdev_19 3 ай бұрын
understood :)
@codeguy21
@codeguy21 Жыл бұрын
striver bhai , waiting for agala lecture
@Tan_cannon
@Tan_cannon 6 ай бұрын
What are the 2 problems showing below (in problem tab) when writing in c++?
@103_debopriyoghosh_cse_by6
@103_debopriyoghosh_cse_by6 7 ай бұрын
If i do get a Good Job with 6lpa + , Its all because of you Raj Bhaiya❤
@pratikpatil1776
@pratikpatil1776 Ай бұрын
47:00 insert before head should have condition for if(head == null)
@DeadPoolx1712
@DeadPoolx1712 2 ай бұрын
UNDERSTOOD;
@drishtirai864
@drishtirai864 7 ай бұрын
Thank you Sir !
@MRADUL_GUPTA_1
@MRADUL_GUPTA_1 5 ай бұрын
@ 18:54 at line 47 what if i not write prev->next =nullptr and straight away write delete prev will the link between prev and head will be removed automatically or its necessary to remove link between prev and head manually.
@vikasshukla6206
@vikasshukla6206 3 ай бұрын
you should have chosen the meaningful variable names like head & tail not head & prev, its confusing
@JAYADILEEPSEETHINA-x7g
@JAYADILEEPSEETHINA-x7g Жыл бұрын
Deletion of tail of the DL. you given this link wrong striver.can you please check and update it
@NazeerBashaShaik
@NazeerBashaShaik 7 ай бұрын
Understood, thank you.
@MJBZG
@MJBZG 4 ай бұрын
understood, could code by myself
@sarangkumarsingh7901
@sarangkumarsingh7901 5 ай бұрын
Awesome ....
@YourCodeVerse
@YourCodeVerse 10 ай бұрын
Understood✅🔥🔥
@RaviKumar-sn6tu
@RaviKumar-sn6tu 7 ай бұрын
best video !!!
@ompawar9791
@ompawar9791 Жыл бұрын
I am the first to hitttt the like button
@firedr4g0n45
@firedr4g0n45 Жыл бұрын
🥇 ye le
@harshitshiva1
@harshitshiva1 7 ай бұрын
thanks sir
@manojkumar-mc3zw
@manojkumar-mc3zw 8 ай бұрын
thanks bro
@sumitworld918
@sumitworld918 6 ай бұрын
Understood 😌
@Ergoswami
@Ergoswami 7 ай бұрын
Completed!
@anshgupta2506
@anshgupta2506 Жыл бұрын
hey striver in removeKelement dont you need to have a flag to check whether the while loop is terminated when kNode==NULL or cnt becomes == k. I mean there are two conditions through which we can come out of while loop. Lets say k==5 then we come out of it when kNode becomes ==NULL and then in the next step you are writing Node* prev=knode->back, so i think here we will get error
@khalasianiket816
@khalasianiket816 4 ай бұрын
understood❤
@rushidesai2836
@rushidesai2836 7 ай бұрын
Amazing!
@SameerSharma-y4m
@SameerSharma-y4m Ай бұрын
Hey everyone, I just have a small doubt at 22:53. Is there any need for removing the tail->back when we are deleting it anyway?
@Tbm4545
@Tbm4545 26 күн бұрын
52:44 inserting kth node pos in link list 52:45
@ArunsinghParihar-j3j
@ArunsinghParihar-j3j 8 ай бұрын
Understood
@firebout7675
@firebout7675 8 ай бұрын
understood
@MohitKumar-o3l1u
@MohitKumar-o3l1u 5 ай бұрын
Understood !!
@SatheeshKumar-kg1yn
@SatheeshKumar-kg1yn 8 ай бұрын
Understood!
@codeman3828
@codeman3828 9 ай бұрын
Awesome
@Devkumar-en7zu
@Devkumar-en7zu 3 ай бұрын
just a small doubt is: that in the question of deleting the node of a DDL at time 43:09, the node to be deleted was given as argument, so just i want to know is that do by providing the node as an argument and not traversing to get it and then putting the logic for deletion, the note gets deleted or it is because you have continued the different operations in one program
@kajalsharma5952
@kajalsharma5952 2 ай бұрын
one playlist for strings please
@HitanshuRathi-zz5vn
@HitanshuRathi-zz5vn 4 күн бұрын
Unserstood brother
@divyachaudhary8669
@divyachaudhary8669 Жыл бұрын
❤striver
@himanshukaushik9223
@himanshukaushik9223 10 ай бұрын
Bhaiya apka solution coding nija pa TLE da rahe hai insertion of double linked list ka yha o/w compile error ??
@ritvitiwari7785
@ritvitiwari7785 Ай бұрын
sir plz upload strings playlist
@ManasNandMohan
@ManasNandMohan 11 ай бұрын
Deletion of head & tail aap same link dal diye hai description mai
L4. Reverse a DLL | Multiple Approaches
18:30
take U forward
Рет қаралды 98 М.
L1. Introduction to LinkedList | Traversal | Length | Search an Element
45:17
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 9 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 16 МЛН
you will never ask about pointers again after watching this video
8:03
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 18 М.
⚡️NEWS | RUBLE COLLAPSE | STRIKE ON CRIMEA | PUTIN IN KAZAKHSTAN
10:34
Ходорковский LIVE
Рет қаралды 184 М.
Machine Learning for Everybody - Full Course
3:53:53
freeCodeCamp.org
Рет қаралды 8 МЛН
L2. Deletion and Insertion in LL | 8 Problems
56:30
take U forward
Рет қаралды 250 М.
L9. Reverse a LinkedList | Iterative and Recursive
32:42
take U forward
Рет қаралды 163 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 954 М.
L1. Introduction to Stack and Queue | Implementation using Data Structures
1:05:06
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 9 МЛН