Code to Create a Linked List in C | Programming

  Рет қаралды 73,806

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Пікірлер: 70
@labanidas4318
@labanidas4318 3 жыл бұрын
Very easy explanation for absolute beginners. I wasted my whole day learning linked list from others videos but learned nothing and got confused. You clarified everything so easily . Thank you sir.
@vivekanandkhyade
@vivekanandkhyade 3 жыл бұрын
Thanks Labani for appreciating
@srivinaytanniru9791
@srivinaytanniru9791 4 жыл бұрын
i nearly wasted half-day by listening other lecture videos(linked list) and learned nothing ,confused alot, but after listening to your lecture i got full clarity on linked list.thank you sir
@amankeshri3823
@amankeshri3823 3 жыл бұрын
Same here , I wasted 2 days 😅
@AbdulMuqsith-xr3dh
@AbdulMuqsith-xr3dh 7 ай бұрын
but i wasted 10 days
@rahullegendboy90
@rahullegendboy90 3 жыл бұрын
Ab jakr koi video mili jism linked list k hr point ko describe krk btaya ....thank you so much sir
@gaaty1954
@gaaty1954 4 жыл бұрын
Informative. Instead of assuming we know all the basics, you explained functions of each code NICEEE! Keep up the good work.
@jimmys8685
@jimmys8685 5 жыл бұрын
Sir,you are truly mind-blowing Earlier I used to see mycodeschool videos but they have stopped uploading a long time ago... You are a the best sir
@patil88ganesh
@patil88ganesh 5 жыл бұрын
The founder of mycodeschool is no more in the world :( He met with an accident. Hence no videos.
@samarthsudarshan4868
@samarthsudarshan4868 5 жыл бұрын
@@patil88ganesh how did u find that out??
@worldoffootball185
@worldoffootball185 Жыл бұрын
very good teaching sir no one can explain this topic in the youtube
@Irshadkhan-ht7yj
@Irshadkhan-ht7yj 5 жыл бұрын
sir i am from Pakistan this video lecture helps me a lot in data structure so it is humbly requested to give such type of lecture on each data structure instead of only explaining algorithm codes explanation helps the students a lot. thank you sir for this lecture and uploading its program.
@CaptWindShear
@CaptWindShear 2 жыл бұрын
Nice and relaxed, easy does it teaching. As good as it gets, many thanks!
@creationcenterTV
@creationcenterTV 5 жыл бұрын
Can you turn this into a series? Maybe you could do doubly linked list next and move onto more and more complex data structures you cover in the other videos
@srijat280
@srijat280 2 жыл бұрын
Spr sir ❤️ explanation is really awesome 😍
@kavindra3823
@kavindra3823 4 жыл бұрын
Very easy explained. My doubts are cleared. Thank u sir
@anilreddypinreddy4457
@anilreddypinreddy4457 4 жыл бұрын
Clear explanation with good information tq 👍 sir .......
@Kkayariya24
@Kkayariya24 Жыл бұрын
Very well explanation!
@richashree3345
@richashree3345 2 жыл бұрын
great explanation sir....thank u very much💯
@dontknowwhatagoodnameis
@dontknowwhatagoodnameis 5 жыл бұрын
this format is quite good sir. keep it up
@supriyajyoti22
@supriyajyoti22 2 жыл бұрын
Thank u sir for such a wonderful video
@sparshvohra9944
@sparshvohra9944 4 жыл бұрын
simple and clear!!!
@Codeshub2024
@Codeshub2024 4 жыл бұрын
Sir plz do the coding for all topics in data structures
@sunilsaini-yb7lb
@sunilsaini-yb7lb 5 жыл бұрын
U r always awesome ,plz keep uploading sir
@avantikaviraltrack685
@avantikaviraltrack685 3 жыл бұрын
Very good
@nickdouroudakis4393
@nickdouroudakis4393 4 жыл бұрын
hi! if i want to add defence programming (a>0 && a
@ArifulIslam-im7wr
@ArifulIslam-im7wr 3 жыл бұрын
Outstanding explanation ❤❤❤
@statusshortz2269
@statusshortz2269 2 жыл бұрын
Thankyou very much sirrr..🙏
@veasnahuy8451
@veasnahuy8451 3 жыл бұрын
Love your videos. Can you create a video on Hash table and hash code?
@anindyasundarhazra2523
@anindyasundarhazra2523 4 жыл бұрын
Very nice Sir
@NOPerative
@NOPerative 5 жыл бұрын
Excellent video.
@srijanapangeni5838
@srijanapangeni5838 5 жыл бұрын
Write a c program to construct a linear link list in c to store student records .The record contains roll no and total Mark's. The program stops when a negative roll no is entered . How to do this pls hlp.
@gauravshukla9339
@gauravshukla9339 5 жыл бұрын
yar what is this ..size of link list is fixed in your video....is it the link list???
@ivanlovich5885
@ivanlovich5885 4 жыл бұрын
Excellent video! Just one question, I don't fully understand why p = head after for loop. Anybody can help?
@Aakash-qr6ky
@Aakash-qr6ky 3 жыл бұрын
Becoz we have to print values of data from starting , but before declarating p=head , p was pointing the null of q so that's why..
@rahulsinghai3033
@rahulsinghai3033 5 жыл бұрын
Hello sir please explain flattening of linked list question if you find time
@taneeshasrivastava7431
@taneeshasrivastava7431 4 жыл бұрын
best for linked list !
@holyshit922
@holyshit922 5 жыл бұрын
I think i finished your algorithm for merge sort linked list but i am not sure is it correct , it seems to be correct but i didnt test it correctly (You have find middle function - second head , and merge sorted linked list to form new sorted linked list I wrote splitBefore function because you had found second head In merge functon i set prev pointers and pointer tail node and i wrote recursive sorting function) I have also partition sort linked list but I think that code can be simplified I have tree sort linked list , worst case can be eliminated using red black tree or AVL tree Our linked list will be general if we use void* as data type, use variable number of function arguments, and pass function as parameter to other function fe for comparison
@holyshit922
@holyshit922 5 жыл бұрын
ideone.com/srAlNc Linked List by Robert Lafore Merge Sort I (have) finished algorithm that Vivekanand Khyade described Partition Sort I decomposed it into parts and wrote each part Goodrich & Tamassia slides was helpful for partition step BST Sort I have found necessary functions on the internet Exercises for you Try to implement non recursive merge sort - natural merge sort is an option This Partition sort uses Lomuto partition which is applicable to both singly linked list and doubly linked list Try to write Partition sort with Hoare partition Time complexity for worst case of this BST sort is O(n^2) Try to improve worst case by using self-balancing BST
@ramyagangolu8449
@ramyagangolu8449 5 жыл бұрын
Sir,plzz upload graph coloring using backtracking
@nadiahossain7327
@nadiahossain7327 5 жыл бұрын
Hello Sir, can you please do hasse diagram.
@sukanyabasu7090
@sukanyabasu7090 4 жыл бұрын
Thank You
@siddhantshelake2928
@siddhantshelake2928 4 жыл бұрын
After for loop completes, why we have to write p=head in the code
@Misia485
@Misia485 2 жыл бұрын
The p=head is used so that p point at the start of the list since we need to print list from start. Before that the p was not in the start. Hope that helps.
@pawanpal1849
@pawanpal1849 Жыл бұрын
❌ sizeof() is an operator not a function
@SarangaE-gv5hf
@SarangaE-gv5hf 3 жыл бұрын
bloody damn explanation
@godofwar4488
@godofwar4488 4 жыл бұрын
please tell what is the name of the compiler
@thomaspgeorge4339
@thomaspgeorge4339 4 жыл бұрын
Dev c++
@abhishiekmahajan9103
@abhishiekmahajan9103 5 жыл бұрын
❤️
@nihadabbikar5788
@nihadabbikar5788 4 жыл бұрын
Sir, can you write the same linked list program to get the output as Banana->orange->pineapple->mango->apple, as the output...when I try to do the same with the above strings I am getting segmentation error...please sir upload such program...it will be a great help
@iulia-andreeagrigore4110
@iulia-andreeagrigore4110 3 жыл бұрын
I got Segmentation 11 when I run the program.
@sgsworld4929
@sgsworld4929 9 ай бұрын
Sir code gulo aktu vs code e run koriye dekiye din
@Devil_queen_5.0
@Devil_queen_5.0 8 ай бұрын
Thank you so much Sir
@ghaxianaeem7848
@ghaxianaeem7848 4 жыл бұрын
Kindly find and back opertion implement if any one ve then share link plzz
@rohitsingla4420
@rohitsingla4420 3 жыл бұрын
These teachers are in university,not those rude teachers
@sravankumar4750
@sravankumar4750 5 жыл бұрын
hi sir.
@varshaa6675
@varshaa6675 5 жыл бұрын
#include #include struct node{ int data; struct node *next; }; int main(void) { struct node *p,*temp,*head; int n; scanf("%d",&n); int element,i; scanf("%d",&element); temp=(struct node *)malloc(sizeof(struct node)); temp->data=element; temp->next=NULL; head=temp; p=head; for(i=1;idata=element; temp->next=NULL; p->next=temp; p=p->next; } p=head; while(p!=NULL) printf("%d",p->data); return 0; } the same code u taught but i am getting infinite values i give could u help me to debug it
@sahanasshenoy8878
@sahanasshenoy8878 5 жыл бұрын
Hey you have missed to create a node in forloop before allocating the element to the temp; Temp already pointing to first node and same node is altered. and at the end, you haven't iterated the link of your node in while() its stucked at first node only.
@sahanasshenoy8878
@sahanasshenoy8878 5 жыл бұрын
#include #include struct node{ int data; struct node *next; }; int main(void) { struct node *p,*temp,*head; int n; scanf("%d",&n); int element,i; scanf("%d",&element); temp=(struct node *)malloc(sizeof(struct node)); temp->data=element; temp->next=NULL; head=temp; p=head; for(i=1;idata=element; temp->next=NULL; p->next=temp; p=p->next; } p=head; while(p!=NULL){ printf("%d\t",p->data); p = p->next; } return 0; } Compare this with your program if you got confused
@sahanasshenoy8878
@sahanasshenoy8878 5 жыл бұрын
Dry run your program on paper step by step first. you will get to know. if not refer below.TRY FIRST IN ORDER TO UNDERSTAND WHAT YOU ARE DOING.
@RekhaTripathi-u6j
@RekhaTripathi-u6j Жыл бұрын
👍👍👍👍👍🫡🫡🫡
@twinklegarg1413
@twinklegarg1413 4 жыл бұрын
Sir -> ka meaning kya hota hai??
@yhz2K
@yhz2K 4 жыл бұрын
its directive operator -> ka matlab aap Pointers use kar rahe aur kisi cheez ki taraf Point kar rahe hein , Pointer use karte waqt is tarah access kiya jata he
@Yavi609
@Yavi609 7 ай бұрын
​@@yhz2K - minus hai kya
@vinaymishra9523
@vinaymishra9523 5 жыл бұрын
hindi me kyu nhi explaination karta koi?
@samiulislamdurjoy
@samiulislamdurjoy 4 жыл бұрын
G 33
@franciscrypto9143
@franciscrypto9143 2 жыл бұрын
mura kag amaw buanga ka
Insert a node at HEAD (beginning) in a Linked List #CodeWithMe#2
16:59
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 8 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
How to create and display a Linked List in C programming
12:48
Understanding and implementing a Linked List in C and Java
18:15
Jacob Sorber
Рет қаралды 250 М.
How to Create a Linked List C++ Introduction to Linked Lists
12:24
Paul Programming
Рет қаралды 943 М.
the cleanest feature in C that you've probably never heard of
8:13
LINKED LIST (CREATION AND DISPLAY) - DATA STRUCTURES
42:19
Sundeep Saradhi Kanthety
Рет қаралды 372 М.
struct Basics | C Programming Tutorial
24:44
Portfolio Courses
Рет қаралды 157 М.
Code to create a Linked List in C Programming Data Strucutres
18:20
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 75 М.
2.4 Linked List Implementation in C/C++ | Creation and Display | DSA Tutorials
29:01
Jenny's Lectures CS IT
Рет қаралды 1,9 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН