Insert a node in Singly Linked List( at the start , middle or end)

  Рет қаралды 333,004

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Пікірлер: 256
@shabbinhossain8127
@shabbinhossain8127 5 жыл бұрын
Finally someone explained me what is a linked list and how to use them! Thank you sir!
@yourtube3214
@yourtube3214 2 жыл бұрын
Yes this is called satisfaction 😀
@db917
@db917 5 жыл бұрын
i have been struglling with linked list for almost 3 or more weeks now,im left behind since the lecturer done it in class i couldnt really move on coz i was stuck, the only reason i didnt come on this channel before is its teaching on the board and i only checked videos that explain with writting running program directly on ide. and just randomnly today i dicided to check more videos even the ones that are just explained on the board andhere i am,only one video made me understand what i have been struggling with for so long,Im really grateful, thank you.
@gauravbharti5390
@gauravbharti5390 6 жыл бұрын
got better explaination than my code school ..keep it up bro
@andythomson2227
@andythomson2227 4 жыл бұрын
💓Finally got it sir after surfing for 1 hour on KZbin for finding this concept.
@RohanGSadnani
@RohanGSadnani 5 жыл бұрын
Sir, aaapko hats off, Your Explanation is the best, because even our NMIMS university teachers can't explain it in an easy way they make it more complex, and during practicals, they tell us to find the solution on our own, iska matlab explanation bhi barabar nahi aur upar sae practicals bhi kudh karo....
@gamerz8220
@gamerz8220 6 жыл бұрын
yes you have really cleared some of my confusions i was really stressed and could not able to understand linked list at all thank you
@subramanianchenniappan4059
@subramanianchenniappan4059 6 жыл бұрын
I am an experienced java developer. able to understand your explanation. good
@zoyajaved4181
@zoyajaved4181 5 жыл бұрын
Plzz make a good video of this thing
@poojayu9100
@poojayu9100 6 жыл бұрын
I am your fan.....your teaching is excellent.....
@soubhagyasamal4049
@soubhagyasamal4049 6 жыл бұрын
your teaching process is fantastic... easily can understand...
@vircycure
@vircycure 6 жыл бұрын
Very nice explanation. There is no doubt after your teach because of your explanation. Thank you sir
@lordsaint4956
@lordsaint4956 6 жыл бұрын
Sir you're great! JUST WOW. How can this be so easy i asked myself literally, because in college lecutres i found it so tough. OmG. Sir you're great! Thank you sir. ❤️
@vipingautam9852
@vipingautam9852 6 жыл бұрын
Thanks Vivek you've explained everything thoroughly!
@raprathiksha2906
@raprathiksha2906 6 жыл бұрын
sir,excellent explanation... Made linked list simple
@kolanaresh7077
@kolanaresh7077 5 жыл бұрын
bro your teaching is excellent and voice also excellent
@aadeshgaikwad3018
@aadeshgaikwad3018 5 жыл бұрын
Best explanation, you have cleared my all concepts 💯
@tanishsharma9127
@tanishsharma9127 5 жыл бұрын
Very impressive video. Explaination is amazing.🔶
@rohandubey8163
@rohandubey8163 5 жыл бұрын
Sir you are brilliant means many college teachers has failed in front of your teaching way criteria , bhut bhut bhut badhiya explaination thank you thanks a lot sir .i always fear about linked list & its code but your this video ,make my confidance strong that #I #CAN
@vivekvish2955
@vivekvish2955 3 жыл бұрын
Short n best...... thankyou sir
@vikrantsanke3554
@vikrantsanke3554 6 жыл бұрын
Hello, You did not include your video - Introduction to Linked List ( very easy) in this playlist. That video is really useful for basics
@diedie111590
@diedie111590 4 жыл бұрын
Thank you I really appreciate your help. Linked list was always difficult for me.
@guilfuchi23
@guilfuchi23 4 жыл бұрын
Really help me to understand completly, thanks, you earn a new subscriber
@somputhea6709
@somputhea6709 4 жыл бұрын
Thank you so much sir. I learned a lot from you.
@leozhong9270
@leozhong9270 Жыл бұрын
thank you sir, even though this video is from 6 years ago. Really good explaination!
@sadanimalsha1482
@sadanimalsha1482 6 жыл бұрын
Well explanation. Keep it up Sir!!!
@nikolaiunger6932
@nikolaiunger6932 5 жыл бұрын
thank you very much. It helped me to understand linked lists
@EntLaut
@EntLaut 5 жыл бұрын
You explained everything except the most important thing,how to find insert position.
@bprincepandey
@bprincepandey 5 жыл бұрын
insert position is given in the question
@DevOpsGuy0
@DevOpsGuy0 4 жыл бұрын
You have to give the insert position by yourself
@davidbarnwellutech4663
@davidbarnwellutech4663 4 жыл бұрын
You can search for the insert position create to new nodes.. currentNode = headNode and previousNode which points to 0 (previous->next=0). Then, in the case of a sorted list ..traverse the list..searching for the insertion point. Something like while(CurrentNode->dataElement dataElement) {previousNode=currentNode; currentNode=currentNode->next; //THEN... // you put the new node BETWEEN currentNode and previousNode } or in the case of an UNSORTED list something like while( current->dataElement != insertionPoint->dataElement) like Mr Khyade was saying
@andythomson2227
@andythomson2227 4 жыл бұрын
insert we have to choose that
@videomoment3409
@videomoment3409 4 жыл бұрын
By count++ till Null
@afjalsharifopu5058
@afjalsharifopu5058 6 жыл бұрын
Best, Best and Best Explanation ....
@rohanyadav764
@rohanyadav764 5 жыл бұрын
kamal ho sir aap ....
@vincenr8822
@vincenr8822 7 жыл бұрын
These videos are way too good.
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Thanks Vinster...!
@mansisakariya2193
@mansisakariya2193 6 жыл бұрын
very nice explanation sir...thank you so much sir
@anuragchatterjee241
@anuragchatterjee241 6 жыл бұрын
Sir ! Ur way of teaching is just commendable. Could you please explain me the topics of hashing ?
@pradeepmishra4021
@pradeepmishra4021 6 жыл бұрын
You are awasome man.
@nandhinimurugesan7605
@nandhinimurugesan7605 5 жыл бұрын
My sincere thanks to you sir.....
@amiratnapuri7678
@amiratnapuri7678 3 жыл бұрын
thank you so much, good video bro!!
@vivekanandkhyade
@vivekanandkhyade 3 жыл бұрын
Thanks sister..👍👍
@Veenathementor
@Veenathementor 7 жыл бұрын
You are such a great teacher sir u really solve my all problems thanks I really subscribe you thanku
@THEmrkrebz
@THEmrkrebz 4 жыл бұрын
Another great video thanks!
@THEmrkrebz
@THEmrkrebz 4 жыл бұрын
I agree!
@ganeshchakka7971
@ganeshchakka7971 4 жыл бұрын
nice explanation sir
@biplabsarkar5485
@biplabsarkar5485 7 жыл бұрын
Excellent explanation sir.
@ajitsahu8319
@ajitsahu8319 5 жыл бұрын
Awesome sir great videos
@mehwishvirk5670
@mehwishvirk5670 6 жыл бұрын
U r good teacher ..... ALLAH bless you always....
@monicaagarwal8517
@monicaagarwal8517 5 жыл бұрын
Great explaination..👍
@sumukhagc5528
@sumukhagc5528 5 жыл бұрын
plz sir make videos of data structures in java also Ur explanation is very good
@teshaleseifu7074
@teshaleseifu7074 3 жыл бұрын
Wonderful teaching way
@chandrasekharanumula4137
@chandrasekharanumula4137 5 жыл бұрын
Very good explanation
@shaikias098
@shaikias098 8 ай бұрын
U will expalin perfectly but on board u will explain we will understand by it but doing in computer that so that we can see execution is also important sir .please do that for whatever code u tell.Its my humble request sir.please sir
@sridipdas1786
@sridipdas1786 6 жыл бұрын
Explanation is Awesome.
@gaoqiangzhou9960
@gaoqiangzhou9960 4 жыл бұрын
thank you, clear and helpful
@xul5839
@xul5839 3 жыл бұрын
You save my exam
@vivekanandkhyade
@vivekanandkhyade 3 жыл бұрын
Thanks
@MrMarkgyuro
@MrMarkgyuro 5 жыл бұрын
that was cool. subscribed!!
@angelahendy4571
@angelahendy4571 2 жыл бұрын
thank you very easy to understand
@roligautam3857
@roligautam3857 6 жыл бұрын
Thanks for such a great Help 😊😊
@Shraddhas__Cookhouse
@Shraddhas__Cookhouse 6 жыл бұрын
Thnx sir..... It's really understandable
@anshumanmishra2555
@anshumanmishra2555 4 жыл бұрын
Here is the full executable program #include #include struct node { //Structure named node to store integer in variable data and a pointer variable which can store address location of next node int data; struct node *next; }*head; void insert(int data) { //This function will insert a new node to the start of the linked list struct node *temp = (struct node*)malloc(sizeof(struct node)); temp->data=data; temp->next=head; head=temp; } void add(int data) { struct node *temp,*p; int loc,len,i=1; printf("Enter the location"); scanf("%d",&loc); len=4; if(loc>len) { printf("Invalid location"); } else { p=head; while(inext; i++; } temp = (struct node*)malloc(sizeof(struct node)); temp->data=data; temp->next=p->next; p->next=temp; } } void display() { struct node *temp; temp=head; if(temp==NULL) { printf("The list is empty"); } else { while(temp!=NULL) { printf("%d->",temp->data); temp=temp->next; } } } int main() { insert(1); display(); insert(2); display(); insert(3); display(); add(6); display(); return 0; }
@shubhrajitparida6399
@shubhrajitparida6399 4 жыл бұрын
Best explanation
@chandusatish9697
@chandusatish9697 6 жыл бұрын
Nice explanation thank you...Bro
@travelnlearn
@travelnlearn 5 жыл бұрын
very nicely explained
@mohammedkapasi769
@mohammedkapasi769 Жыл бұрын
very good explanation.
@jeya7125
@jeya7125 6 жыл бұрын
Thanks for the tutorial.Very good.Can you please share for Circularly Linked List ?
@dainaetishaa5006
@dainaetishaa5006 6 жыл бұрын
Best.. explanation..ty sr
@yuqian822
@yuqian822 6 жыл бұрын
Thank you!
@TheStifler46
@TheStifler46 6 жыл бұрын
Excellent, I have become a fan of you. Also can you make videos on string algorithms
@tharunyajayaseelan9674
@tharunyajayaseelan9674 6 жыл бұрын
I understand your explanation. thank you
@koreandramamix866
@koreandramamix866 5 жыл бұрын
Explanation is really good but you speak very slowly
@mahamamir9176
@mahamamir9176 5 жыл бұрын
Watch at x1.25
@AdeshPaul
@AdeshPaul 5 жыл бұрын
Thanks for teaching.
@AbdulWahab-ri7cd
@AbdulWahab-ri7cd 3 жыл бұрын
Thank you so much sir ❤️
@poojachitalkar9245
@poojachitalkar9245 6 жыл бұрын
thank u so much sir 😘😘😘
@raveendrakumar7452
@raveendrakumar7452 6 жыл бұрын
nice sir ji
@ishup7696
@ishup7696 6 жыл бұрын
very helpful thank you sir
@thashmithamandrira9829
@thashmithamandrira9829 6 жыл бұрын
V good explanation 👍
@kunalpatil6961
@kunalpatil6961 6 жыл бұрын
perfect bhau...
@Handling6265
@Handling6265 Жыл бұрын
Thankyou very much sir 😊😊
@philimonphiri2817
@philimonphiri2817 5 жыл бұрын
thanks its easy here to understand
@lilug2744
@lilug2744 3 жыл бұрын
Sir Maza agiya bohat dhoonda per ap say Maza agiya sir please implement in java compiler how classes made please explain
@kelvinkipchumbakoech9758
@kelvinkipchumbakoech9758 6 жыл бұрын
Very nice, Bravo!
@ahmedmohammedyahia7666
@ahmedmohammedyahia7666 2 жыл бұрын
Thanks for you ❤❤
@hariharanm2906
@hariharanm2906 5 жыл бұрын
Really, a fantastic video on youtube.
@9893011111
@9893011111 5 жыл бұрын
Case 2nd, how can be a pointer P can be checked with position ??
@kattapriyanka8457
@kattapriyanka8457 6 жыл бұрын
very good explanation
@playerpl2772
@playerpl2772 4 жыл бұрын
I have a question. When inserting a node at the end, i use the code below and it didnt work. I dont know why while (p != NULL) { p = p->next; } p = new_node;
@andycommp5234
@andycommp5234 4 жыл бұрын
try using this while(p->next != NULL){ p = p->next; } p->next=new_node;
@lironstern1979
@lironstern1979 4 жыл бұрын
@@andycommp5234 what is p though?
@UsmanAli-cl5xg
@UsmanAli-cl5xg 5 жыл бұрын
👍👍👌👌
@sagarjadhav3564
@sagarjadhav3564 5 жыл бұрын
Hello sir, I want to create a linked list only & display that linked list.....(how many nodes this input it given by user) what can i do sir?
@prachibarathe6490
@prachibarathe6490 6 жыл бұрын
It's really helpful
@GlobalHuntersTech
@GlobalHuntersTech 5 жыл бұрын
thnk yu sir ....
@veeshankiagarwal1277
@veeshankiagarwal1277 6 жыл бұрын
can u please explain Algorithm for Circular Linked list.Your Videos are good.
@winnieveronica1139
@winnieveronica1139 4 жыл бұрын
Finally understand haha. Thank youu very much
@rahulkhartude4918
@rahulkhartude4918 3 жыл бұрын
Thank you sir❤️
@jennychinyama8665
@jennychinyama8665 5 жыл бұрын
jenny chinyama I have enjoyed the lesson on linked list
@gauravbharti5390
@gauravbharti5390 6 жыл бұрын
good video for beginners ..
@chandanchakraborty6787
@chandanchakraborty6787 6 жыл бұрын
please make an of circular linkedlist...it's very important . thank you
@Maa_Inti_Vanta
@Maa_Inti_Vanta 6 жыл бұрын
Sir... In insert node in the middle algorithm, can we write like newnode=p->next p->next=newnode
@shubhampatel7870
@shubhampatel7870 6 жыл бұрын
we won't need an additional pointer then... it is supposed to be done that way actually
@Maa_Inti_Vanta
@Maa_Inti_Vanta 6 жыл бұрын
@@shubhampatel7870 ohh tq sir
@Saumya9258
@Saumya9258 7 жыл бұрын
sir , ur lec videos are really very helpful.can u plz post a lecture on ' addition of two numbers represented by linked list' .
@vivekanandkhyade
@vivekanandkhyade 7 жыл бұрын
Yes sure very sooon
@kalaiselvan7840
@kalaiselvan7840 6 жыл бұрын
Just loop throughout the end and within the loop add node->data.
@bradwang3648
@bradwang3648 5 жыл бұрын
very helpful.. thanks!!
@mikhailpalagashvili169
@mikhailpalagashvili169 6 жыл бұрын
Why can't we just keep a tail reference and make the add at the end o(1) instead of o(n)
@bonchodikov6248
@bonchodikov6248 4 жыл бұрын
Well done sir ! 10x :)
@naolworku1823
@naolworku1823 7 жыл бұрын
wowuu nice vedio
@hameedmulani21
@hameedmulani21 5 жыл бұрын
Very good video 😇
@raghavmalhotra710
@raghavmalhotra710 6 жыл бұрын
To the point and great!!
@bhavyasachula7006
@bhavyasachula7006 3 жыл бұрын
thank you .
@robinahmed3310
@robinahmed3310 5 жыл бұрын
Very Well Done .
@rebeccalrebeccal8614
@rebeccalrebeccal8614 5 жыл бұрын
I need full description of list and tuples
Delete a node from single linked list( head node/ middle / end node)
11:00
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 163 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 138 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 120 МЛН
LINKED LIST (INSERTION AT BEGINNING,ENDING,SPECIFIED POSITION ) - DATA STRUCTURES
23:17
Single Linked List (Inserting a Node at a Certain Position)
6:52
Neso Academy
Рет қаралды 331 М.
Single Linked List (Inserting a Node at the End)
5:49
Neso Academy
Рет қаралды 408 М.
LINKED LIST (DELETION FROM BEGINNING,ENDING AND SPECIFIED POSITION) - DATA STRUCTURES
21:32
Insert a Node at End of Linked List | Java
4:42
B Tech Computer Science
Рет қаралды 4,9 М.
Winning Google Kickstart Round C 2020
30:57
William Lin (tmwilliamlin168)
Рет қаралды 4 МЛН
Insert a node at HEAD (beginning) in a Linked List #CodeWithMe#2
16:59
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 8 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 138 МЛН