Тёмный

2.4 Linked List Implementation in C/C++ | Creation and Display | DSA Tutorials 

Jenny's Lectures CS IT
Подписаться 1,6 млн
Просмотров 1,7 млн
50% 1

CORRECTION: @24:10 initialize choice variable with 1 by writing:
int choice=1;
In this video we will see implementation of basic operations like Create a Node in Linked List and traverse a Linked List.
DSA Full Course: https: • Data Structures and Al...
******************************************
See Complete Playlists:
C Programming Course: • Programming in C
C++ Programming: • C++ Complete Course
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
DAA Course: • Design and Analysis of...
Placement Series: • Placements Series
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
************************************************
Connect & Contact Me:
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
#linkedlist #datastructures #algorithms

Опубликовано:

 

12 авг 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,3 тыс.   
@JennyslecturesCSIT
@JennyslecturesCSIT Год назад
CORRECTION: @24:10 initialize choice variable with 1 by writing: int choice=1;
@rabean50
@rabean50 Год назад
long time no see
@sachinandanprasad7618
@sachinandanprasad7618 Год назад
@@kangmoabel still she is the best the way she teaches,, its unique & efficient enough..
@pallaviyaddanapudi7345
@pallaviyaddanapudi7345 Год назад
After loop which is one printed for creating list
@Mohammed.1471
@Mohammed.1471 Год назад
Mam can u please provide printed code ?....plzz
@SB_Roy_Vlogs
@SB_Roy_Vlogs 11 месяцев назад
​@@Mohammed.1471 @SB_Roy_Vlogs #include #include #include struct node{ int data; struct node *next; }; int main(){ struct node *head,*newnode,*temp; int choice=1; head=NULL; while(choice){ newnode=(struct node*)malloc(sizeof(struct node)); printf("Enter node:"); scanf("%d",&newnode->data); newnode->next=NULL; if(head==NULL){ head=newnode; temp=newnode; } else{ temp->next=newnode; temp=newnode; } printf("Enter 1 for continue and 0 for exit:"); scanf("%d",&choice); } temp=head; while(temp!=NULL){ printf("%d->",temp->data); temp=temp->next; } printf("NULL"); getch(); return 0; }
@LaysaBit
@LaysaBit 3 года назад
At this point, I dropped my college classes to watch your videos. I learn so fast with you, even though english is not my first language. A big thank you from Brazil!
@replyingtomemeansyourstupi8996
@replyingtomemeansyourstupi8996 2 года назад
mi amor brasilia
@iskacharms2792
@iskacharms2792 2 года назад
Bro
@ricardob9276
@ricardob9276 2 года назад
@@replyingtomemeansyourstupi8996 iam stupid
@crazysorter9700
@crazysorter9700 Год назад
Great
@diwasmishra4122
@diwasmishra4122 Год назад
Which study you were doing which course
@srin42
@srin42 4 года назад
Her dedication should be really appreciated.Please do all algorithms then leetcode also. She will be a youtube education trainer star. Her videos are being viewed from all corners of the world. in short she is helping many students who lack proper lectures. Some people born to help and a bring change in world. She has long way to go.
@badrip3237
@badrip3237 Год назад
Please explain me what is the difference between head pointer and newnode pointer and why malloc is used for only newnode but not head
@bhashkarkumar1542
@bhashkarkumar1542 Год назад
@@badrip3237 the declaration "struct Node* head = NULL" reserves memory for the pointer variable 'head', it doesn't allocate memory for the 'node' structure itself at this point. the memory for the Node structure is dynamically allocated using the malloc.
@mavericks5763
@mavericks5763 3 года назад
Thank you ma'am. The code taught by ma'am is : #include #include void main(){ struct node{ int data; struct node *next; }; struct node *head; struct node *newnode; struct node *temp; head=NULL; int choice,count=0; while(choice) { newnode=(struct node*)malloc(sizeof(struct node)); printf("Enter Data: "); scanf("%d",&newnode->data); newnode->next=0; if(head==0) {head=temp=newnode;} else { temp->next=newnode; temp=newnode;} printf("Do you want to continue (0,1)? "); scanf("%d",&choice); } printf("-------------------------------- "); temp=head; while(temp!=0) { printf(" %d ",temp->data); temp=temp->next; count++;} { printf(" Count=%d",count);} }
@bemb_111akshaychaudhari8
@bemb_111akshaychaudhari8 2 года назад
thanks
@invincible8321
@invincible8321 2 года назад
Appreciate it bro
@tushtikulshreshtha01
@tushtikulshreshtha01 2 года назад
Thanks brother
@MRAGAV
@MRAGAV 2 года назад
🔥💥
@maongozukum5572
@maongozukum5572 2 года назад
Doesn't run proberly
@arvindersingh9588
@arvindersingh9588 4 года назад
One of the best DS lectures i have ever seen on youtube. The tricky concept of linked list has been explained in such an interactive and crystal clear manner that i was able to think of the codes of other operations on singly linked list by end of video. This type of content deserves millions of views. Wish you get 1 Million + subs soon. Thanks for the awosome content. Respect from NIT Jalandhar
@prachijadhav5719
@prachijadhav5719 3 года назад
Ma'am I have seen many videos of data structures but yours is best 💯thanks a lot for such a best explaination of the concept🙌👍
@duniajahansaraasman1997
@duniajahansaraasman1997 3 года назад
Mam ne wakai accha tarike se samjhaya hai
@soujitd
@soujitd 2 года назад
Your words are really true bro...
@sunnyjain6731
@sunnyjain6731 2 года назад
@@pundlikpatil2380 bhai printf scanf ki jgh cout cin ka he to diff hai itna kuch nhi hai same he to hai bro
@aniketsaha7273
@aniketsaha7273 2 года назад
Kitna paisa mila yeh sab likhne ke liye Bhai
@snehashishhalder6591
@snehashishhalder6591 4 года назад
Because of you I am alive ... Can't understand a single concept in my clg but after your 30 mins lecture ... Its now clear and understandable ... Proper explanations and best tutorials in RU-vid for CS students ... Keep this amazing work up !!
@ayeshaqamar9224
@ayeshaqamar9224 6 месяцев назад
Seriously she deserves Oscar in teaching profession ❤
@srujithreddy1643
@srujithreddy1643 2 года назад
I finally understood the concept of linked list. previously, I watched thousands of other youtubers, teaching the same thing and no body does it better than you . Thank you so much mam.....
@anjalii1102
@anjalii1102 4 года назад
I was so tensed with linked list.Tried paid courses,even watch other so called 80 k+ subscriber's channels no one was better than you.u explain from heart not juzz for subscribers.hoping 4ur 1 Million+ n ahead!!!! Tysm ma'am
@heeku_
@heeku_ 4 года назад
you explain so good, there is not a lot of QUALITY videos regarding linked list, you are among the few I have ever seen, you made me understand linked list (which I am doing in C now) and I managed to success my homework after trying it for a week without success, you are amazing, I want to thank you for that!
@moazzamqureshi7150
@moazzamqureshi7150 4 года назад
This is like exponential times better than my phd professor , glad to be learning from this !
@RahulSingh-db3ge
@RahulSingh-db3ge 4 года назад
One of the best teacher I have ever seen in my life who explained linked list in such an easy way. Thanks mam for uploading this video.
@erl2nd
@erl2nd Год назад
Thank you 😊 You have given new life to my understanding of the C program Link List.
@deekshithpraddeep6715
@deekshithpraddeep6715 3 года назад
Thank u so much Maam, the lecture was one of the effective and understanding DS lectures I had watched since now. I again Thank u for the effort you have taken for providing us this Wonderful Lecture.
@prabhat2661
@prabhat2661 9 месяцев назад
Jenny mam your teaching skills are way better than tier 1 2 3 college teachers really grateful to consume such valuable content for free hats of to your hard work and dedication towards Teaching, every engineers programming base is created from RU-vid .... :)
@yrtepgold
@yrtepgold 2 года назад
Hello from the USA. Thank you for making these videos mam! I found your channel last spring as I was struggling to implement a linked list ds for a masters course. I found your channel and after watching this video everything clicked for me and I totally understood what I needed to do. I've since passed my course but I find myself still watching videos on your channel even though I don't need to for any course work bc I find your teaching style and white board approach to be so effective.
@user-ve8kw6eu7h
@user-ve8kw6eu7h 8 месяцев назад
Sir ,in usa how is the scope of IT sector ? Is it has much scope?
@koolkd12
@koolkd12 4 года назад
Amazing, you didn't only explain the concept of linked lists well, you also taught how to think and construct the program along the way, adding the if else , while loops . Wish I had someone teach me concept like this 10 us back when I graduated I would have found greater joy and purpose in life with programming.
@TheBoredandCool
@TheBoredandCool 3 года назад
GeeksforGeeks is organising mini course of DSA that you should not miss out. Why?? 1. Live QnA sessions, you can clear all doubts related to DSA. Any doubt from LinkedList to Graph. 2. You will get practice problems after every Data structure to make you good at DSA and crystal clear concepts. 3. After completion of course you will get certificate and can access course anytime. 4. Its FREE!!! But only if you use the below code - GFGD4Y2JR Register here- practice.geeksforgeeks.org/courses/Workshop-DSA?loginMode=308
@murigig
@murigig 4 года назад
You can't imagine how much you are helping some of us
@harshgupta0498
@harshgupta0498 2 года назад
what a explanation, you just won my heart. I got this lecture after suffering a lot from linked list. Thank you so much MAM for providing such a wonderful lecture.
@AnmolKumar-ci7qz
@AnmolKumar-ci7qz 4 года назад
Best lecture ever ma'am...u have explained every single point...
@gautamdwivedi2400
@gautamdwivedi2400 3 года назад
One of the best video on linked list. I tried to learn from different sources but coudn't understand. But after watching this video my concepts are completely clear. The concept has been explained in crystal clear manner. Thank you so much ma'am for this awesome video.
@abdulwarissherzad9914
@abdulwarissherzad9914 4 года назад
You teach Link List completely in a very logical way and i hope you will never remove this taturail or never chang to payment site . thank you.... wish you the best .
@TheBoredandCool
@TheBoredandCool 3 года назад
GeeksforGeeks is organising mini course of DSA that you should not miss out. Why?? 1. Live QnA sessions, you can clear all doubts related to DSA. Any doubt from LinkedList to Graph. 2. You will get practice problems after every Data structure to make you good at DSA and crystal clear concepts. 3. After completion of course you will get certificate and can access course anytime. 4. Its FREE!!! But only if you use the below code - GFGD4Y2JR Register here- practice.geeksforgeeks.org/courses/Workshop-DSA?loginMode=308
@kumarivandana3449
@kumarivandana3449 3 года назад
I had lots of confusion .. but now I understand everything about linked list...thank you so much Jenny mam.. Students like us ..who do not understand concepts easily you teach us easily.😊
@ershadtantry5774
@ershadtantry5774 4 года назад
...been struggling with this for quite some time. Thank you for the help!
@brainify6172
@brainify6172 3 года назад
This video is so wonderful that after watching it My linked list concepts are Crystal Clear. No one shows the malloc visualization part. You are such a great teacher. Thank you so so so much. Now I'm able to visualize all other problems of Linked List so easily
@Cloud-577
@Cloud-577 3 года назад
finally i undrstand things! very well explained. I'm a self taught engineer so finding a youtube video that explains the concept, answers all the why questions, and all the little details is so rare.
@AmitYadav-hm4sz
@AmitYadav-hm4sz 4 года назад
one of the best DS lectures i have ever seen on youtube.... this type of lecture is not present on youtube..thanks mam
@harithachandran9562
@harithachandran9562 2 года назад
Ma'am I have a doubt ,I have an error in if(head=newnode->next=0) It seems Id returned 1 exit status.
@vaibhavsharma5114
@vaibhavsharma5114 4 года назад
Really mam the lecture was soo understanding, i was having soo much difficulty in implementation of link list but nothing helped me out.Your lecture was soo good and excellent that i have no doubts remained please continue to teach us like this mam.Really you're a fabolous teacher
@ayushpandey2640
@ayushpandey2640 10 дней назад
OMG what's a understanding level I thinks this type of teachers can clear all doubts of students thanks for this mam😊
@sarabjeetkhadka1940
@sarabjeetkhadka1940 Год назад
Mam ke lectures padhne k baad subject me interest bhi padh jaata hai, jo koi bhi seekhna hahte hai aur achhe se seekh nahi paare bcoz of financial problems or unke clg me achhe se nahi padaya jaara, suno mam itna effort laga rahi hai jitna ho sake donation krdo guys, i know students ko mushkil hoti hai but trust me she's helping us alot more than we ever will so jitna ho sake utni help karo channel ki😄
@ramjas5351
@ramjas5351 4 года назад
o....mother of algorithm...💚💛🧡 i never seen such like explanation. ..only and only requist capture ever topic. .
@ashrafulalamhridoy6728
@ashrafulalamhridoy6728 4 года назад
Miss, i have been trying to learn linked list for last 4/5 days.. And wasted 6/7 hours. But somehow i found your video and thought 30 mins will waste again.. But everything changed when you were explain.. You made it so clear and easy.. Thanx for the great video..
@thanigaivelan8394
@thanigaivelan8394 4 года назад
The same here...bro....😉😉😉
@fouziyafarheen9918
@fouziyafarheen9918 3 года назад
I thank you ma'am for your whole-hearted effort! Your explanation is clear enough to understand! 😊
@adritaadi8027
@adritaadi8027 Месяц назад
no one can beat you in teaching DSA!!! You are simply the BEST!!!!!!!1
@sooryaj1270
@sooryaj1270 4 года назад
the value of the choice variable must be set to 1 for the initial entry into while loop, EXCELLENT LECTURE MAM !! A great tutorial that took me to the basics !!! happy_coding_geeks !!
@shreshtha_6399
@shreshtha_6399 4 года назад
Thanks mam for teaching in such an amazing way , keep giving your valuable knowledge 🤩🤩🤩🔥🔥🔥
@eumm11
@eumm11 Год назад
Professor Jenny you are absolutely amazing, thank you so much for all your work, it's extremely helpful. I always watch your videos when I need to understand something, you are definitely the best!
@talinungsanglemtur2278
@talinungsanglemtur2278 2 года назад
Thankful for such a brilliant teacher in youtube. One of the best Data Structure lecture one can find.
@adhargupta3441
@adhargupta3441 3 года назад
Who the hell has said the one way communication can't work...🙄 This is incredible mam thanku🥺🌝💗💗
@smitkevadia
@smitkevadia 3 года назад
Your videos are very helpful during this lockdown period. Thank You ❤
@apoorvarumale1505
@apoorvarumale1505 4 года назад
I'm all serious and attentive throughout the video but your "take care and bye-bye" melts my heart.
@TheBoredandCool
@TheBoredandCool 3 года назад
GeeksforGeeks is organising mini course of DSA that you should not miss out. Why?? 1. Live QnA sessions, you can clear all doubts related to DSA. Any doubt from LinkedList to Graph. 2. You will get practice problems after every Data structure to make you good at DSA and crystal clear concepts. 3. After completion of course you will get certificate and can access course anytime. 4. Its FREE!!! But only if you use the below code - GFGD4Y2JR Register here- practice.geeksforgeeks.org/courses/Workshop-DSA?loginMode=308
@krithikkumar959
@krithikkumar959 4 года назад
I have attended my normal lecture and also saw some other RU-vid videos but I never understood linked list implementation. But after seeing this video everything is crystal clear. Thanks a lot for such a great effort.
@great8736
@great8736 7 месяцев назад
Thankyou mam i pass the data structure exam by watching your videos😊❤.its really very very helpfull to me
@mdimranhussain171
@mdimranhussain171 2 года назад
Thank you teacher. after 4 days of wandering here and there , its all clear now .
@sahanas7838
@sahanas7838 6 месяцев назад
Mam I'm really thankful for you ❤️. I never thought that I would understand this topic but you made this really easy to understand. This society needs more teachers like you. Thank you for your amazing help mam💜
@user-rb1tg4se2d
@user-rb1tg4se2d 2 года назад
Thank you so much ma'am itna basic se kisine nhi bataya, thanks a lot🙏
@muhammadsaqibjaved9904
@muhammadsaqibjaved9904 Год назад
A big round of applause from Pakistan. Great work.... But please do the same in Java coding. Thank you
@avineshp7858
@avineshp7858 4 года назад
Recently started following your channel. Good stuff on data structure and algorithms. Almost everything is covered and explained clearly. Being a non CS student it is difficult to understand DS but you have made it easy. Thank you.
@abhayda6188
@abhayda6188 4 года назад
Hands down the best video on youtube for this topic....great explanation! Guys please watch the whole video.
@YasirKhan-bl8lj
@YasirKhan-bl8lj 4 года назад
Jenny from the number of RU-vid videos on Link List in Data Structure topic you made it really simpler to understand what is actually being done with this complex concept of link list and i guess you really did a lot of hard work before delivering this lecture. Thank you very very much. I hope you will be uploading more useful videos of programming language especially of C++.
@douchenozzlemcgee6111
@douchenozzlemcgee6111 4 года назад
w o w she's smart, well-spoken and gorgeous?? My brain has officially broken!
@shivambaghel9668
@shivambaghel9668 4 года назад
A big thanks to you ma'am,i was so frustrated on this topic but you clear all my confusion and make a clear cut concept, thanks you.❤️🤘
@TheBoredandCool
@TheBoredandCool 3 года назад
GeeksforGeeks is organising mini course of DSA that you should not miss out. Why?? 1. Live QnA sessions, you can clear all doubts related to DSA. Any doubt from LinkedList to Graph. 2. You will get practice problems after every Data structure to make you good at DSA and crystal clear concepts. 3. After completion of course you will get certificate and can access course anytime. 4. Its FREE!!! But only if you use the below code - GFGD4Y2JR Register here- practice.geeksforgeeks.org/courses/Workshop-DSA?loginMode=308
@njahnavi7943
@njahnavi7943 3 года назад
The best lecture I have attended so far on implementation of LL..crystal clear explanation.. thank you so much mam ❤️🙏
@kalyanigade602
@kalyanigade602 24 дня назад
I saw many videos on youtube but all were confusing. You explained it in a very easy way. Thank you mam.....
@abhishek_kumarvelloreinsti1866
@abhishek_kumarvelloreinsti1866 4 года назад
I would like to owe you my genuine respect from the core of my heart....a huge amount of respect from me....n fr my friends from Vellore institute of Technology....
@harshdwivedi5832
@harshdwivedi5832 4 года назад
Proper explanation!Amazing lecturer...Each and every point was explained briefly and she cleared almost all my doubts and confusions regarding link list within minutes.Thank you for this.😊
@devanshunandha6119
@devanshunandha6119 3 года назад
Just started understanding basics of linked list. Understood everything clearly. Ma'am, The way you taught the concepts was amazing. Teaching everything with the basic idea, even beginner like me can learn very quick. Thank you so much. Looking forward to watch more of your lectures :)
@mirrors.of.reality
@mirrors.of.reality 3 года назад
Thank you so much for your clear and detailed explanation. Helped me to better understand linked lists but also how pointers and dynamic memory allocation really work.
@roshangogu2670
@roshangogu2670 Год назад
Oh my, why can’t i understand anything 😢
@learnersacademybyhaya.345
@learnersacademybyhaya.345 3 месяца назад
Did you get then? Did you pass the course?
@DurgaSaathwikKolla
@DurgaSaathwikKolla 3 месяца назад
😂😂
@roshangogu2670
@roshangogu2670 3 месяца назад
@@learnersacademybyhaya.345it's been 1 year 😲 , luckily I passed my exam(data structure), it was my 3rd sem subject and currently I am on my final sem(time files like a jet)
@roshangogu2670
@roshangogu2670 3 месяца назад
@@learnersacademybyhaya.345 yeh, I passed luckily anyway🥹. It was one of my 3rd sem subject
@coding_with_bf
@coding_with_bf 3 месяца назад
I am also😢😢😢😢
@divyenduroychoudhuri7267
@divyenduroychoudhuri7267 2 года назад
Thanks a lot madam. I was struggling with these for 1 week. I couldn't find any proper material or any lecture video or notes containing good explanations. But after seeing your lecture I am really feeling very comfortable with the topic. Thank you very much for such great explanation. 😊😊
@Vcdddddd
@Vcdddddd Год назад
Bhai ye program run hua tha
@shraiyashpandey365
@shraiyashpandey365 2 года назад
I have gone through so many linked list implementation and explanation videos on RU-vid, but none of them helped me, if anything I got more confused. But this video literally saved me from failing my DS exam lol! Thank You so much!
@anushkaamar111
@anushkaamar111 2 года назад
Amazing explanation, I was so confused about creating the linked list, but this video made everything clear. kudos.
@brr522
@brr522 9 месяцев назад
This lecture is so good.. I can't thnk you enough for the lectures u provide.. solid lecture 💯💯
@team4b68
@team4b68 4 года назад
This video made Linked List finally look so so easy, that it made me say.. "Yaar yeh toh kitna easy hai!".. Awesome lecture ma'am! :D
@maryannemuthoni5388
@maryannemuthoni5388 3 месяца назад
Thank you, watched it about 3-4 times because i got confused when temp was introduced but when i started drawing the diagrams it made sense, thank you Jenny, you are so brilliant, how you know all these concepts is baffling in a good way, you are incredible.
@hjklmn9526
@hjklmn9526 6 месяцев назад
Jenny Mam, Your DSA tutorials are a pleasure to watch. You see, It's been 21 years (in my early 40s) since I completed Computer Engineering, and needed a resource to brush up on DSA. Didn't wish to read Cormen again :) Your simple style of teaching really helped me absorb faster.. Good wishes to you, Mam
@AJAYLIKEEMO
@AJAYLIKEEMO 4 года назад
Ma'am its my 17th time of watching this video though I haven't understood this concept well but Dekhna Acha Lagta hai
@Adeel_Noshahi
@Adeel_Noshahi 4 года назад
Mam my cousin became your fan at first sight.He listens your lec by sitting with me even though he is not studying at all.
@ruthrakaran
@ruthrakaran 3 года назад
🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣suma eru da
@anvithas_aesthetics
@anvithas_aesthetics 9 месяцев назад
YOU HAVE NO IDEA HOW MUCH UR HELPING ME , DURING EXAMS . YOU'RE SAVIOUR
@Amandeepsingh-gh4ry
@Amandeepsingh-gh4ry Год назад
Your way of teaching is very awesome. I feel like I am sitting in a classroom and studying in person from you. Thanks a lot for clarifying the linked list in a very simple manner.
@AbdulGhaffar-lw5vf
@AbdulGhaffar-lw5vf 4 года назад
Thnk yu... BTW How yu said "fine" in last is funny nd cute.
@franciscorodriguez-zb8uq
@franciscorodriguez-zb8uq 3 года назад
im still amazed on how good this whole playlist is... mam... thank you so much...
@jacobblack2544
@jacobblack2544 Год назад
Me no hablo engles!
@josephajigboteso853
@josephajigboteso853 Год назад
Thank you very much ma. Its the way you spend time explaining each concept and not assume we know everything that makes me Lil your videos. Thanks to making C simple
@lakeshnampelly2196
@lakeshnampelly2196 Год назад
I Really thank you for your lectures and your Explanations, and the Love you show toward the Subjects. And that is helping a lot of people who are suffering with where to start and how to start. Lots of Love❤ from Telangana, Hyderabad.
@jenniefine9456
@jenniefine9456 4 года назад
Awesome linked list tutorial thank you. It's my request, if you can make video on some higher competitive problems like baktracking,highest substring palindrome pls make Thanks🙏🙇
@Crying_eyes
@Crying_eyes 4 месяца назад
I have to ignore mam in video to understand the topic Why she 's so beautifull❤
@dedeepya2611
@dedeepya2611 3 года назад
Thank u so much ...for making us understand the concept so clearly ....so that we are able to do program by our own❤️
@tarunrajpoot989
@tarunrajpoot989 3 года назад
Great lecture, Awesome Explanation. Thank you for sharing your valuable knowledge with us.
@PareeksAcademy10october2001
@PareeksAcademy10october2001 2 года назад
/*Creation and display of singly linked list*/ #include #include #include void main() { struct node{ int data; struct node *next; }; struct node *head,*newnode,*temp; head=0; int choice; while(choice){ newnode=(struct node*)malloc(sizeof(struct node)); printf("enter data"); scanf("%d",&newnode->data); newnode->next=0; if(head==0) { head=temp=newnode; } else { temp->next = newnode; temp=newnode; } printf("do you want to continue"); scanf("%d",&choice); } temp=head; while(temp!=0) { printf("%d",temp->data); temp=temp->next; } }
@Twitter_trending_
@Twitter_trending_ Год назад
this code will node work because you have to assign your choice=1 before while
@amitkumargupta6722
@amitkumargupta6722 4 года назад
mam you teach from the depth of heart....And this is the biggest reason of your constant energy and smile during all the lecture....."THANKS A LOT''
@shadanahmadec4694
@shadanahmadec4694 Год назад
I think the best lecture I've ever seen on youtube and how clearly defines node concept one by one. Love u mam😊.
@nileshkhimani9315
@nileshkhimani9315 4 года назад
your tutorials is too helpfull , ma'am, i am happy to say that , i have seen my sister in you ,durnig the tutorial. i felt like , my sister is teaching me. so will you please be my didi?
@aryanrathore1790
@aryanrathore1790 4 года назад
Even 1million likes are less for this lecture!!
@ShubhamSingh-de8es
@ShubhamSingh-de8es 2 года назад
Thank you so much for these Amazing Data Structure Lectures.
@ishuadlakha61
@ishuadlakha61 4 года назад
Thanks alot .. i m from different field ... it's bit difficult to do all at my own..but your videos are so soo helpful that boost me to learn more n more..u r truely an inspiration... Thanks alot once again...❤️❤️
@hetulmehta9960
@hetulmehta9960 Год назад
#include #include int main(){ struct node{ int data; struct node * next; }; struct node *head, *newnode , *temp; head = 0; int choice = 1; while(choice){ newnode =(struct node *)malloc(sizeof(struct node)); printf("Enter data"); scanf("%d", &newnode -> data); newnode->next = 0; if(head == 0){ head = temp = newnode; } else{ temp -> next = newnode; temp = newnode; } printf("Do you want to continue (0 , 1)?"); scanf("%d",&choice); } temp = head; while(temp != 0) { printf("%d",temp-> data); temp = temp -> next; } }
@shreeyapatel1391
@shreeyapatel1391 10 месяцев назад
this helped a lot to me thank you
@justcurious1940
@justcurious1940 9 месяцев назад
So clean bro.
@PahadiChan05
@PahadiChan05 7 месяцев назад
hai kis chees ka
@santanukumar2993
@santanukumar2993 4 года назад
After watching 3 time i got to know little and i would like to pin point u that u should in main program.
@santasahithi4789
@santasahithi4789 4 года назад
I watched first time but something is missing in my head...should watch once more
@sumit13479
@sumit13479 3 года назад
same here bro......
@sixtusagbo
@sixtusagbo Год назад
I love this tutorial, the best I've seen so far
@tanweerakhtar4357
@tanweerakhtar4357 4 года назад
This the best explaination of linked list i can ever expect all my queries has been cleared within the video itself.. thanku very much mam....
@saitarunaili3370
@saitarunaili3370 4 года назад
Ma’am I’m getting conflicting types for head, while declaring head=0
@sriparnachakraborty974
@sriparnachakraborty974 4 года назад
U r superb maam
@shanmukhteja3555
@shanmukhteja3555 3 года назад
Simple superb Hrs of classes can't teach this topic to me ..... But just 29 mins of this video teached me this topic..... Very well said....
@ravikaramunge8028
@ravikaramunge8028 4 года назад
Really a great explaination i Ever Seen before thank you so much from the bottom of my heart 💗
@koushikmajumder1898
@koushikmajumder1898 3 года назад
I can't run it with while(choice), I am using Do-while instead...is that correct way to approach?
@chiragpandey3221
@chiragpandey3221 3 года назад
with do whille it will be executed once and the ask which doesn't affect anything in short it doesn't matter
@dhruvvashishth3122
@dhruvvashishth3122 3 года назад
shuru mai bhi jab ham choice declare kar rhe hai tih bhi shayad choice ki value deni padegi like int choice=1;
@sumitadas9286
@sumitadas9286 2 года назад
Can you please give me the full code? I am also struggling to run it
@himanshuraj9047
@himanshuraj9047 3 года назад
"2:20" best moment
@AbhayKumar-gl5hh
@AbhayKumar-gl5hh 2 года назад
OMG very good explanation for the linked list, I was confused for so long now its all clear, thankyou!
@vinayakm.1753
@vinayakm.1753 2 года назад
mam,frankly to say this video is so worthy.Till now no one has explained this concept clearly.
@veerbeniwal120
@veerbeniwal120 4 года назад
can anyone show me the complete linked list program..in same way she is teaching..same variables,functions,and datatypes
@saitarunaili3370
@saitarunaili3370 4 года назад
Veer Beniwal can you send me too, if someone sent you?
@aniketmishra8197
@aniketmishra8197 4 года назад
#include #include int main() { struct node { int data; struct node *next; }; typedef struct node NODE; int choice=1; NODE *head,*newnode,*temp; head=0; while(choice) { newnode=(NODE *)malloc(sizeof(NODE)); printf("Enter data item "); scanf("%d",&newnode-> data); newnode->next=0; if(head==0) { head=temp=newnode; } else { temp->next=newnode; temp=newnode; } printf("Do you want to continue:(Type 0 or 1)? "); fflush(stdin); scanf("%d",&choice); } temp=head; printf("Linked list items: "); while(temp!=0) { printf("%d ",temp->data); temp=temp->next; } return 0; }
@LyricsLayer
@LyricsLayer 4 года назад
@@aniketmishra8197 Correct, I was thinking that how will it go in while loop already but you have declared choice that is right and instead we can also use do while also , do while will also do right?
@fahimsharuk433
@fahimsharuk433 3 года назад
bro i have an doubt, y we using NODE.
@aniketmishra8197
@aniketmishra8197 3 года назад
@@fahimsharuk433 to avoid writing struct node.
@rahulkaushik949
@rahulkaushik949 4 года назад
PLEASE CAN YOU GIVE THIS CODE IN C++
@shonemicheal4935
@shonemicheal4935 4 года назад
#include #include #include using namespace std; struct node{ int data; node *next; }; int count=0; node *head=0,*newnode,*temp; class linked{ public: void createnode(); void traverse(); }; int main(){ int choice; char ch; linked li; do{ cout
@chprudhviraj7208
@chprudhviraj7208 3 года назад
Brother can I give code for c I'm unable be execute above code I'm getting errors
@mavericks5763
@mavericks5763 3 года назад
@@shonemicheal4935 Can you please provide the complete code of Linked List in C ?
@shonemicheal4935
@shonemicheal4935 3 года назад
@@mavericks5763 idk c bro
@shonemicheal4935
@shonemicheal4935 3 года назад
@@mavericks5763 #include #include struct node { int data; struct node *next; }; struct node *head; void beginsert (); void lastinsert (); void randominsert(); void begin_delete(); void last_delete(); void random_delete(); void display(); void search(); void main () { int choice =0; while(choice != 9) { printf(" *********Main Menu********* "); printf(" Choose one option from the following list ... "); printf(" =============================================== "); printf(" 1.Insert in begining 2.Insert at last 3.Insert at any random location 4.Delete from Beginning 5.Delete from last 6.Delete node after specified location 7.Search for an element 8.Show 9.Exit "); printf(" Enter your choice? "); scanf(" %d",&choice); switch(choice) { case 1: beginsert(); break; case 2: lastinsert(); break; case 3: randominsert(); break; case 4: begin_delete(); break; case 5: last_delete(); break; case 6: random_delete(); break; case 7: search(); break; case 8: display(); break; case 9: exit(0); break; default: printf("Please enter valid choice.."); } } } void beginsert() { struct node *ptr; int item; ptr = (struct node *) malloc(sizeof(struct node *)); if(ptr == NULL) { printf(" OVERFLOW"); } else { printf(" Enter value "); scanf("%d",&item); ptr->data = item; ptr->next = head; head = ptr; printf(" Node inserted"); } } void lastinsert() { struct node *ptr,*temp; int item; ptr = (struct node*)malloc(sizeof(struct node)); if(ptr == NULL) { printf(" OVERFLOW"); } else { printf(" Enter value? "); scanf("%d",&item); ptr->data = item; if(head == NULL) { ptr -> next = NULL; head = ptr; printf(" Node inserted"); } else { temp = head; while (temp -> next != NULL) { temp = temp -> next; } temp->next = ptr; ptr->next = NULL; printf(" Node inserted"); } } } void randominsert() { int i,loc,item; struct node *ptr, *temp; ptr = (struct node *) malloc (sizeof(struct node)); if(ptr == NULL) { printf(" OVERFLOW"); } else { printf(" Enter element value"); scanf("%d",&item); ptr->data = item; printf(" Enter the location after which you want to insert "); scanf(" %d",&loc); temp=head; for(i=0;inext; if(temp == NULL) { printf(" can't insert "); return; } } ptr ->next = temp ->next; temp ->next = ptr; printf(" Node inserted"); } } void begin_delete() { struct node *ptr; if(head == NULL) { printf(" List is empty "); } else { ptr = head; head = ptr->next; free(ptr); printf(" Node deleted from the begining ... "); } } void last_delete() { struct node *ptr,*ptr1; if(head == NULL) { printf(" list is empty"); } else if(head -> next == NULL) { head = NULL; free(head); printf(" Only node of the list deleted ... "); } else { ptr = head; while(ptr->next != NULL) { ptr1 = ptr; ptr = ptr ->next; } ptr1->next = NULL; free(ptr); printf(" Deleted Node from the last ... "); } } void random_delete() { struct node *ptr,*ptr1; int loc,i; printf(" Enter the location of the node after which you want to perform deletion "); scanf("%d",&loc); ptr=head; for(i=0;inext; if(ptr == NULL) { printf(" Can't delete"); return; } } ptr1 ->next = ptr ->next; free(ptr); printf(" Deleted node %d ",loc+1); } void search() { struct node *ptr; int item,i=0,flag; ptr = head; if(ptr == NULL) { printf(" Empty List "); } else { printf(" Enter item which you want to search? "); scanf("%d",&item); while (ptr!=NULL) { if(ptr->data == item) { printf("item found at location %d ",i+1); flag=0; } else { flag=1; } i++; ptr = ptr -> next; } if(flag==1) { printf("Item not found "); } } } void display() { struct node *ptr; ptr = head; if(ptr == NULL) { printf("Nothing to print"); } else { printf(" printing values . . . . . "); while (ptr!=NULL) { printf(" %d",ptr->data); ptr = ptr -> next; } } }
@haripriya8675
@haripriya8675 2 года назад
My first choice is always Jenny lectures for my cs doubts... Whenever I watch u I will be thinking of ur qualification and ur experience...u r younger it seems... But ur teaching and behaviour shows more maturity than ur age... U r Not at all adding any make up.. Always u r being simple and neat.. I love u mam.. From Tamilnadu....
Далее
the TRUTH about C++ (is it worth your time?)
3:17
Просмотров 638 тыс.
ЛУЧШИЙ ПОДАРОК  @mozabrick #shorts
00:40
Просмотров 1,1 млн
Pointers and dynamic memory - stack vs heap
17:26
Просмотров 1,4 млн
Linked List - Implementation in C/C++
13:58
Просмотров 1,6 млн
How To Think Like A Programmer
1:00:07
Просмотров 2 млн