Delete a node from single linked list( head node/ middle / end node)

  Рет қаралды 163,500

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Пікірлер: 113
@harismasoom6634
@harismasoom6634 2 жыл бұрын
Thank you very much sir may you stay healthy and keep sharing your knowledge. This explanation helps me a lot.
@ratankhalsa6034
@ratankhalsa6034 6 жыл бұрын
What simple and amazing explanation. Thank you so much!
@sauraV_Verma
@sauraV_Verma 5 жыл бұрын
You forgot to mention the case of deleting an empty list where you print an error message. However trivial it may sound but this completes the solution.
@ayeshajamil5713
@ayeshajamil5713 3 жыл бұрын
Your method of teaching is sooo welll😍😍😍
@soumyaa1190
@soumyaa1190 7 жыл бұрын
Vivek, your explanation of the logic is too good. Could you please post the code's in javascript as well.
@josueteodoromoreira8921
@josueteodoromoreira8921 4 жыл бұрын
just convert it to your language mate
@analyticstamizan677
@analyticstamizan677 5 жыл бұрын
sir your videos are very easy to understand the concept..thanku....
@fahadmakabugo2114
@fahadmakabugo2114 4 жыл бұрын
This is the best explanation I have seen.
@mayurtakate5138
@mayurtakate5138 7 жыл бұрын
sir your really to good.....please make video on programming of Trees & Graphs
@muhammadkashif19
@muhammadkashif19 4 жыл бұрын
Hi Sir The way of your teaching is so good Keep sharing your knowledge in this way we wil always support you...:)
@patelhuda5542
@patelhuda5542 6 жыл бұрын
Sir ua explanation is really oustanding it makes DS a bit easyy.. it would be very nice if do explain one program with each algorithm...
@devotion_surya3741
@devotion_surya3741 4 жыл бұрын
Wow sir, hats off what an amazing explanation.
@ConnectBhawna
@ConnectBhawna 3 жыл бұрын
thank you sir for sharing your knowledge .It is really helpful for me .
@vivekanandkhyade
@vivekanandkhyade 3 жыл бұрын
Thanks Bhavana
@bitsread7249
@bitsread7249 6 жыл бұрын
Good, i understood the inserting more. I wish you could write algorithm for this rather than the code. The inserting was perfect. You are good, Thank you.... I've subscribed and i click notification wink
@tlikhitha5338
@tlikhitha5338 5 жыл бұрын
Sir ur explanation is helping me alot.thank u so much sir
@sandhyanityasri1307
@sandhyanityasri1307 6 жыл бұрын
Sir ur explanation is very gud and simple. Thank u sir.
@RajPatel-is8em
@RajPatel-is8em 5 жыл бұрын
Thank you very much sir.love from gujarat🤩😍😘
@sanjaykumargupta6261
@sanjaykumargupta6261 5 жыл бұрын
ur video is awesome sir .its a humble request to u to make all the video related to data structure.
@prajaym3114
@prajaym3114 5 жыл бұрын
Please make a video on stack and queue 🙂
@sangappam217
@sangappam217 7 жыл бұрын
explain this program sir delete the node containing even values and we need to make a new linked list of only even node
@anupbisoyi
@anupbisoyi 5 жыл бұрын
Please explain delete last occurrence of an item from linked list in a separate video.
@md.jiarulislam2068
@md.jiarulislam2068 4 жыл бұрын
Amazing Explanation, Sir....Thank you sir
@monisattili7642
@monisattili7642 7 жыл бұрын
Thank you man , your videos very helpful for me , keep going
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Thanks Monis..!
@sushant3530
@sushant3530 4 жыл бұрын
​@@vivekanandkhyade Sir plz give Github link of program of this video it would be highly appreciable and thankful . or sir make a running program video. plz
@vishnuvardhan-md1ux
@vishnuvardhan-md1ux 7 жыл бұрын
hello vivek thankyou for your videos please do a video on infix to postfix conversion
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
yes sure vishnu....
@sushant3530
@sushant3530 4 жыл бұрын
@@vivekanandkhyade Sir plz give Github link of program of this video it would be highly appreciable and thankful . or sir make a running program video. plz
@revatineigapula4747
@revatineigapula4747 5 жыл бұрын
sir its really nice but can u give me some example in single linked list by taking numbers.
@ameenabeehanasi5969
@ameenabeehanasi5969 7 жыл бұрын
Can understand easily now!. Thanks so much
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Thanks Ameena..!
@paramkhurana5578
@paramkhurana5578 4 жыл бұрын
Hi Sir! Thanks for an awesome video! But, I cannot find the code in the Github repository. Could please put the code in your GitHub repository? Thanks🙏😊
@nicholas_as
@nicholas_as 5 жыл бұрын
at 9:28 can we refactoring the code so we don't need if syntax after the code breaks from while loop into this : q =>P next. Because i think this code can be applied when we want to delete node in the middle or in the last. If we want to delete the last node, we know that p next is null since it breaks from while loop. then the pointer q should point to p next... any opinion ???
@AlgoXperience
@AlgoXperience 6 жыл бұрын
sir really u r really .....,.,.,..,.,}
@yogalakshmi1206
@yogalakshmi1206 5 жыл бұрын
Can u make it a single program which consist of all the implementation sir
@kiranappu3064
@kiranappu3064 7 жыл бұрын
thank u for this video mrs viveknand......... may i this code link plz as soon as possible
@buskilamaor9587
@buskilamaor9587 7 жыл бұрын
what happens when the input is 1000 -> 1000 - > 1000 and k = 1000, aren't you left with the head element not null and its "next" is null??...somehow i tweak the algorithm but in any try some case works but other fail..
@zelekethomas3028
@zelekethomas3028 6 жыл бұрын
thanks,I understand many things from your channel
@anupgn6206
@anupgn6206 6 жыл бұрын
Video is good,but 1 kind correction i.e its not delete(p)....its free(p)
@andreassoteriou5602
@andreassoteriou5602 5 жыл бұрын
He deleted the node of the value that person entered. not the node that person entered..
@rumaborah1229
@rumaborah1229 7 жыл бұрын
thank you for this video and plz do a video on stack implimentation using link list
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Thanks Ruma.....will do video on stack using linked list..!
@sushant3530
@sushant3530 4 жыл бұрын
@@vivekanandkhyade Sir plz give Github link of program of this video it would be highly appreciable and thankful . or sir make a running program video. plz
@LahoreFilms
@LahoreFilms 5 жыл бұрын
hi vivek! I am Hussain from Lahore Pakistan i have seen lot of your algorithm videos for help and today i went to the link you gave for complete code please dont mind i want you to know that the interface or the theme you used for your blog is not user friendly . as it is difficult to find the correct or required output in small time there is need to manipulate every single link or link you gave at the home-screen. Regards your student from Pakistan.
@LahoreFilms
@LahoreFilms 5 жыл бұрын
one more thing i have learnt lot from you using KZbin platform.
@akhil1786
@akhil1786 5 жыл бұрын
i want full program with executed
@katrinejensrud537
@katrinejensrud537 4 жыл бұрын
thank you so much!best explanation
@ayushshrivastava696
@ayushshrivastava696 5 жыл бұрын
sir you explained well but this program will not run
@mahamnadeem6244
@mahamnadeem6244 6 жыл бұрын
i want full based method of writing a link list code in c++ which can be compiles also
@enigmaticgale7436
@enigmaticgale7436 5 жыл бұрын
i think, in internal deletion , there should be q=p->next; instead of, q->next=p->next; because we are linking the q to the next of p,not linking next of q to next of p.
@areejgul8725
@areejgul8725 4 жыл бұрын
Please add whole program in your description box or give a cpp file
@ponnuvel659
@ponnuvel659 6 жыл бұрын
I found bug in your code... what will happen if data is not present in linked list..you will get segmentation fault.so make it fix. apart from that great technique to delete the node. Thank you:)
@MUHAMMADUSMAN-rx9df
@MUHAMMADUSMAN-rx9df 6 жыл бұрын
use if then else if then else not found
@jayalakshmiappurubuktha3096
@jayalakshmiappurubuktha3096 6 жыл бұрын
Thanks sir it was very useful to me
@lakshmidvs3258
@lakshmidvs3258 6 жыл бұрын
very nice explanation sir
@BRIANZ-h2t
@BRIANZ-h2t 4 жыл бұрын
REAL NICE EXPLAINATION
@thesoftwareengineer17
@thesoftwareengineer17 4 жыл бұрын
hey i guess it will be while(p.data!=d && p!=null) . And there will be a condition to checkif(p==null) and if so it mean data does nto exist in the list
@tharunyajayaseelan9674
@tharunyajayaseelan9674 6 жыл бұрын
I understand your explanation. Thankyou
@farheenazeem9511
@farheenazeem9511 4 жыл бұрын
nice explanation! Thank u so much..
@GlobalHuntersTech
@GlobalHuntersTech 5 жыл бұрын
sir yu are amazing................
@s.a.musharaf8291
@s.a.musharaf8291 4 жыл бұрын
Nice explanation!
@shubhenduinfotech5992
@shubhenduinfotech5992 6 жыл бұрын
Thanks this videos helped me😀😀😀
@supriyapurohit1090
@supriyapurohit1090 4 жыл бұрын
Thank you soo much sir!!!
@logic_master950
@logic_master950 6 жыл бұрын
Thanks a lot , you are the best indeed
@mukeshmkssolanki
@mukeshmkssolanki 5 жыл бұрын
Sir single linked list me short ka video bnaana plz
@ThuongPham-wg4bc
@ThuongPham-wg4bc 4 жыл бұрын
absolutely clear. thank sir
@balain5391
@balain5391 4 жыл бұрын
Why we are maintaining two pointers p and q, instead we can do directly ptr.next = ptr.next.next
@AKHILDS-j3v
@AKHILDS-j3v 7 жыл бұрын
you are amazing thans sir
@akshaymomle8231
@akshaymomle8231 6 жыл бұрын
Sir u r great....... Thank uuuu
@falala9570
@falala9570 5 жыл бұрын
You are amazing!
@sagarjauhari6491
@sagarjauhari6491 6 жыл бұрын
Thank u for this class, sir !
@revathybaskar9940
@revathybaskar9940 Жыл бұрын
Sir can you give algorithm for this
@picklughosh9994
@picklughosh9994 5 жыл бұрын
sir linked list ka ek playlist kar do na toh acha heta hein
@andreassoteriou5602
@andreassoteriou5602 5 жыл бұрын
My problem is that you delete the node of the value that the persnon entered. What about deleting the node that the person entered. for ex: i say delete the 3rd node... and not the '15' which is the value of 3rd node..
@mradulbohra2897
@mradulbohra2897 5 жыл бұрын
i guess in that scenario we will run the loop having a variable 'k' having an initialising value of '1' and we will take the value of node from the user in a variable called "position" and in every iteration we will be doing k++ and after every increment we will check if(k==position) and then proceed in the same way
@priyammukherjee9725
@priyammukherjee9725 5 жыл бұрын
what does this d denote?
@Abhiraj91197
@Abhiraj91197 6 жыл бұрын
if desired node value not found then this algo will delete last node anyway its absurd ..
@subhankardey3813
@subhankardey3813 5 жыл бұрын
Sir make video on stack or queue
@vaishavielayaraja9078
@vaishavielayaraja9078 5 жыл бұрын
Pls post trees and graphs sir
@FactQuest-siuu
@FactQuest-siuu 6 жыл бұрын
requested please to have a bit larger board and speak fluently beside this awesome job
@kaustubhpatil651
@kaustubhpatil651 5 жыл бұрын
yeah just speak fluently sirji. It will have a good impression on viewers
@evelynkabiite8407
@evelynkabiite8407 5 жыл бұрын
Amaizing!!!
@fatimayousaf2156
@fatimayousaf2156 6 жыл бұрын
make a video to generate singly linked list and disply it on screen
@xDxDFabian
@xDxDFabian 5 жыл бұрын
nice dude! keep it up!
@tianhao7783
@tianhao7783 5 жыл бұрын
nice explaination~~~
@amiratnapuri7678
@amiratnapuri7678 3 жыл бұрын
Thanks bro
@khimratibrahim3309
@khimratibrahim3309 4 жыл бұрын
Head node tu nhe huta but head pointer huta...but now you say that Head node
@prakhartiwari1953
@prakhartiwari1953 4 жыл бұрын
Can i use this code in exam as algorithms ??
@codingguru4865
@codingguru4865 4 жыл бұрын
Check this Tutorial on Data Structures kzbin.info/aero/PLbRk-vKGcVtbyctZWP9SUYewwUfx75CpZ
@PraveenKumar-ft2kr
@PraveenKumar-ft2kr 4 жыл бұрын
Thank you sir 😊
@sachinbhardwaj2679
@sachinbhardwaj2679 5 жыл бұрын
Quite helpful
@vick2920
@vick2920 6 жыл бұрын
Sir please add delete a node and insert a node in github
@chriscozilas
@chriscozilas 5 жыл бұрын
i love you🔥
@josueteodoromoreira8921
@josueteodoromoreira8921 4 жыл бұрын
oloko kkk
@neerajrai9197
@neerajrai9197 7 жыл бұрын
osm sir
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Thanks Neeraj
@sushant3530
@sushant3530 4 жыл бұрын
@@vivekanandkhyade Sir plz give Github link of program of this video it would be highly appreciable and thankful .
@shantanutiwari3287
@shantanutiwari3287 7 жыл бұрын
Why such complicated code? Can u Plz write only the code thart u hav done in the inserting algorithm
@sdsouza1753
@sdsouza1753 7 жыл бұрын
lol
@adithilife6962
@adithilife6962 Жыл бұрын
nice
@Vineetkumar-qz4wj
@Vineetkumar-qz4wj 4 жыл бұрын
Thanks sir
@mishamohan9298
@mishamohan9298 6 жыл бұрын
thnk u sir
@anjalir8504
@anjalir8504 5 жыл бұрын
thanks sir
@maleselalehlogonolo7747
@maleselalehlogonolo7747 6 жыл бұрын
STACK INSERT AND DELETE
@unnamedsoldier1
@unnamedsoldier1 6 жыл бұрын
Thank you
@partz6990
@partz6990 6 жыл бұрын
Brilliant🖒
@sayeedkhan4886
@sayeedkhan4886 6 жыл бұрын
Sir can u give us java demoo
@OmPrakash-zp3ov
@OmPrakash-zp3ov 6 жыл бұрын
Unable to delete the First/Head node , can you help me with below JAVA code snippet. Thanks public static void delete(ListNode head, int element) { ListNode q = head; ListNode p = head.next; int d = element; if (q.data == d) { head = p; q.next=null; System.gc(); //Unable to delete the first node Why? } else { System.out.println("Is I ma else"); while (p.data != d) { p = p.next; q = q.next; } if (p.next == null) { q.next = null; } else { q.next = p.next; p.next = null; } } }
@sidruhela7595
@sidruhela7595 5 жыл бұрын
Bhai yr bhot tdga pdhate ho yr ap Koi unphad bhi smj jae
@dhruvilpujara1523
@dhruvilpujara1523 6 жыл бұрын
How to move the last node of a linked list to the middle of the list: Do check this out - kzbin.info/www/bejne/qqS1on55prqXf7s
Insert / add  a node in Doubly Linked List
9:20
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 126 М.
Circular Linked List in Data Structures (with Code)
21:46
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 52 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 44 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 51 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
Delete a node from Binary Search Tree
18:27
mycodeschool
Рет қаралды 1,1 МЛН
Singly Linked List | Insert, Delete, Complexity Analysis
14:39
Blue Tree Code
Рет қаралды 62 М.
Insert a node in Singly Linked List( at the start , middle or end)
8:09
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 332 М.
Single Linked List (Deleting the Node at a Particular Position)
9:43
LINKED LIST (DELETION FROM BEGINNING,ENDING AND SPECIFIED POSITION) - DATA STRUCTURES
21:32
Reverse a Doubly Linked List in C
12:12
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 48 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 44 МЛН