Code to Create a Linked List in C | Programming

  Рет қаралды 72,728

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

Күн бұрын

Пікірлер: 70
@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 5 ай бұрын
but i wasted 10 days
@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
@gaaty1954
@gaaty1954 4 жыл бұрын
Informative. Instead of assuming we know all the basics, you explained functions of each code NICEEE! Keep up the good work.
@rahullegendboy90
@rahullegendboy90 2 жыл бұрын
Ab jakr koi video mili jism linked list k hr point ko describe krk btaya ....thank you so much sir
@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??
@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.
@worldoffootball185
@worldoffootball185 Жыл бұрын
very good teaching sir no one can explain this topic in the youtube
@richashree3345
@richashree3345 2 жыл бұрын
great explanation sir....thank u very much💯
@anilreddypinreddy4457
@anilreddypinreddy4457 4 жыл бұрын
Clear explanation with good information tq 👍 sir .......
@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
@CaptWindShear
@CaptWindShear 2 жыл бұрын
Nice and relaxed, easy does it teaching. As good as it gets, many thanks!
@katariyaarchita4306
@katariyaarchita4306 Жыл бұрын
Very well explanation!
@supriyajyoti22
@supriyajyoti22 2 жыл бұрын
Thank u sir for such a wonderful video
@sparshvohra9944
@sparshvohra9944 4 жыл бұрын
simple and clear!!!
@kavindra3823
@kavindra3823 4 жыл бұрын
Very easy explained. My doubts are cleared. Thank u sir
@avantikaviraltrack685
@avantikaviraltrack685 3 жыл бұрын
Very good
@srijat280
@srijat280 2 жыл бұрын
Spr sir ❤️ explanation is really awesome 😍
@statusshortz2269
@statusshortz2269 2 жыл бұрын
Thankyou very much sirrr..🙏
@subhranil_mukherjee
@subhranil_mukherjee 5 жыл бұрын
this format is quite good sir. keep it up
@Codeshub2024
@Codeshub2024 4 жыл бұрын
Sir plz do the coding for all topics in data structures
@anindyasundarhazra2523
@anindyasundarhazra2523 4 жыл бұрын
Very nice Sir
@ArifulIslam-im7wr
@ArifulIslam-im7wr 3 жыл бұрын
Outstanding explanation ❤❤❤
@NOPerative
@NOPerative 5 жыл бұрын
Excellent video.
@veasnahuy8451
@veasnahuy8451 3 жыл бұрын
Love your videos. Can you create a video on Hash table and hash code?
@taneeshasrivastava7431
@taneeshasrivastava7431 4 жыл бұрын
best for linked list !
@nickdouroudakis4393
@nickdouroudakis4393 4 жыл бұрын
hi! if i want to add defence programming (a>0 && a
@sukanyabasu7090
@sukanyabasu7090 3 жыл бұрын
Thank You
@sunilsaini-yb7lb
@sunilsaini-yb7lb 5 жыл бұрын
U r always awesome ,plz keep uploading sir
@ivanlovich5885
@ivanlovich5885 3 жыл бұрын
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..
@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.
@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
@gauravshukla9339
@gauravshukla9339 5 жыл бұрын
yar what is this ..size of link list is fixed in your video....is it the link list???
@Devil_queen_5.0
@Devil_queen_5.0 6 ай бұрын
Thank you so much Sir
@abhishiekmahajan9103
@abhishiekmahajan9103 5 жыл бұрын
❤️
@SarangaE-gv5hf
@SarangaE-gv5hf 3 жыл бұрын
bloody damn explanation
@rahulsinghai3033
@rahulsinghai3033 5 жыл бұрын
Hello sir please explain flattening of linked list question if you find time
@ramyagangolu8449
@ramyagangolu8449 5 жыл бұрын
Sir,plzz upload graph coloring using backtracking
@nadiahossain7327
@nadiahossain7327 5 жыл бұрын
Hello Sir, can you please do hasse diagram.
@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.
@godofwar4488
@godofwar4488 3 жыл бұрын
please tell what is the name of the compiler
@thomaspgeorge4339
@thomaspgeorge4339 3 жыл бұрын
Dev c++
@pawanpal1849
@pawanpal1849 Жыл бұрын
❌ sizeof() is an operator not a function
@nihadabbikar5788
@nihadabbikar5788 3 жыл бұрын
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 7 ай бұрын
Sir code gulo aktu vs code e run koriye dekiye din
@rohitsingla4420
@rohitsingla4420 3 жыл бұрын
These teachers are in university,not those rude teachers
@ghaxianaeem7848
@ghaxianaeem7848 4 жыл бұрын
Kindly find and back opertion implement if any one ve then share link plzz
@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.
@samiulislamdurjoy
@samiulislamdurjoy 4 жыл бұрын
G 33
@vinaymishra9523
@vinaymishra9523 5 жыл бұрын
hindi me kyu nhi explaination karta koi?
@franciscrypto9143
@franciscrypto9143 2 жыл бұрын
mura kag amaw buanga ka
@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
@Yahavikaneria
@Yahavikaneria 4 ай бұрын
​@@yhz2K - minus hai kya
@RekhaTripathi-u6j
@RekhaTripathi-u6j 10 ай бұрын
👍👍👍👍👍🫡🫡🫡
Insert a node at HEAD (beginning) in a Linked List #CodeWithMe#2
16:59
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 8 М.
How to create and display a Linked List in C programming
12:48
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 13 МЛН
Всё пошло не по плану 😮
00:36
Miracle
Рет қаралды 5 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 4,4 МЛН
Code to create a Linked List in C Programming Data Strucutres
18:20
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 75 М.
How to Create a Linked List C++ Introduction to Linked Lists
12:24
Paul Programming
Рет қаралды 933 М.
LINKED LIST (CREATION AND DISPLAY) - DATA STRUCTURES
42:19
Sundeep Saradhi Kanthety
Рет қаралды 368 М.
Understanding and implementing a Linked List in C and Java
18:15
Jacob Sorber
Рет қаралды 241 М.
2.4 Linked List Implementation in C/C++ | Creation and Display | DSA Tutorials
29:01
Jenny's Lectures CS IT
Рет қаралды 1,8 МЛН
Understanding and implementing a Hash Table (in C)
24:54
Jacob Sorber
Рет қаралды 360 М.
Creating the Node of a Single Linked List
6:00
Neso Academy
Рет қаралды 1 МЛН
Linked List - Implementation in C/C++
13:58
mycodeschool
Рет қаралды 1,6 МЛН
Circular Linked List in Data Structures (with Code)
21:46
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 51 М.