This is a blessing to us who are not having any classes to study! Brilliant teaching literally! Also please complete the series, trees graphs and everything
@Jeremyak4 ай бұрын
Neso puts out the highest quality videos I have been able to find on these topics, this is the type of instruction one would expect to find in a college course that you paid too much money for, but in reality it's better than 95% of them. Thank you sir, God bless.
this wont work you first link the node coming after the node deleted then free that node
@khabibali49674 жыл бұрын
Sir, Honestly speaking I have no words that I explain your vast knowledge about Data Structure on KZbin But unfortunately, I couldn't find a complete series on data structure
@eva42sh2 жыл бұрын
This is the best site to learn Data Structures.
@pulastyadas33514 жыл бұрын
Sir,Please upload double linked list , stack , queue as soon as possible 🙏🙏🙏 this will help us to prepare for placement this year
@nesoacademy4 жыл бұрын
Sure.
@karimabou64934 жыл бұрын
And also trees please
@sambitmishra1294 жыл бұрын
@@nesoacademy sir I could able to learn c only bcz of u sir. Plz 🙏 upload the rest of topic of dsa as soon as possible,it will be a great help for students.....❤️ The way you have explained the things nobody can explain that way .very easy & to the point & the example in chapter just brush up the knowledge of the topic to the next level.....sir plz 🙏 🙏 give a lot of examples with explanation to make things more easier..... Thank u sir u r great help ❤️❤️❤️
@Thannila.G-l6b3 ай бұрын
Thankyou very much sir , without you I can't understand programming.
@mohdarsalan7944 жыл бұрын
Please upload daily one video sir.
@nesoacademy4 жыл бұрын
We wish to achieve this kind of upload frequency.
@sambitmishra1294 жыл бұрын
@@nesoacademy sir please 🙏 try to increase the upload speed that is 1 video per day...
@syedsulaiman8380 Жыл бұрын
This channel is HUGLEY underrated
@TECH-ch5dm7 ай бұрын
hey guys i have followed along the whole series, here is the complete code // Online C compiler to run C program online #include #include struct node { int data; struct node *link; }; int print_datan_count(struct node *head){ int count=0; if(head==NULL) printf("Link list is Empty"); struct node *ptr=head; while(ptr!=NULL){ count++; printf("%d ",ptr->data); ptr=ptr->link; } printf(" count=%d",count); } int add_at_end(struct node *head,int data){ struct node *ptr; ptr=head; struct node *temp=malloc(sizeof(struct node)); temp->data=data; temp->link=NULL; while(ptr->link!=NULL){ ptr=ptr->link; } ptr->link=temp; } struct node* add_at_beg(struct node *head,int data){ struct node *ptr=malloc(sizeof(struct node)); ptr->data=data; ptr->link=head; head=ptr; return head; } void insert_pos(struct node *head,int data,int pos){ struct node *ptr=head; struct node *temp=malloc(sizeof(struct node)); temp->data=data; temp->link=NULL; if(pos==1){ printf("Use add_at_beg function"); exit(0); } else{ pos--; for(int i=1;ilink; } temp->link=ptr->link; ptr->link=temp; } } struct node *del_first(struct node *head){ if(head==NULL){ printf("Linked List is Empty"); } else{ struct node *temp=head; head=head->link; free(temp); temp=NULL; } return head; } void *del_last(struct node *head){ if(head==NULL){ printf("Link List is Empty"); } else if(head->link==NULL){ free(head); head=NULL; } else{ struct node* temp=head; struct node* ptr=head; while(temp->link->link != NULL){ temp=temp->link; } free(temp->link); temp->link=NULL; } // return head; } struct node *del_pos(struct node *head,int pos){ struct node *ptr=head; struct node *temp=head; if(head==NULL){ printf("Linked List is Empty"); } else if(pos==1){ head=ptr->link; free(ptr); ptr=NULL; } else{ while(pos!=1){ temp=ptr; ptr=ptr->link; pos--; } temp->link=ptr->link; free(ptr); ptr=NULL; } } int main(){ // Write C code here struct node *head=malloc(sizeof(struct node)); head->data=70; head->link=NULL; struct node *current=malloc(sizeof(struct node)); current->data=60; current->link=NULL; head->link=current; current=malloc(sizeof(struct node)); current->data=40; current->link=NULL; head->link->link=current; //count_nodes(head); add_at_end(head, 64); head=add_at_beg(head,45); insert_pos(head, 444, 6); head=del_first(head); del_last(head); del_pos(head,4); //printf(" "); print_datan_count(head); return 0; }
@Unkn0wn_Legend0004 жыл бұрын
thank U very much sir............ really helped a lot when I had an assignment to submit in 3 hours........
@PrasunNath3 жыл бұрын
Thanks a lot , i was stuck at this topic, now i am completely satisfied, thanks again
@utkarshgupta75173 жыл бұрын
Pastly watches 3 videos on it but was still not getting, this one has made it clear
@saidhakshan4447 Жыл бұрын
best linked list tutorials ever.
@krishnakumarjha12364 жыл бұрын
Thank you for this. Brilliant as always.
@Ankit-mh1qx4 жыл бұрын
Pls upload daily & cover whole series of dsa
@ahmettunaergul9598 Жыл бұрын
logic is understandable but writing code is ....
@yashsinghal97484 жыл бұрын
Sir please upload all the videos fastly I am very curious to learn from your videos
@shilpakumari1149 Жыл бұрын
U r just awesome And your teaching style is best😊
@hi-xu5ee4 жыл бұрын
Sir plz upload the remaining portion of the data structures because it is to helpful 🙏🙏🙏🙏🙏
@rahulkumar_3174 жыл бұрын
@neso acedmy It is very helpful for us... Please upload the remained topic ..
@dipeshsamrawat79573 жыл бұрын
I love Neso Academy. 💝
@amankumarsingh4884 жыл бұрын
But we can also achieve this by using only one pointer instead of current and previous !
@prathyushamiduthur11462 жыл бұрын
then we cannot use that free line right?
@radhikataneja5805 Жыл бұрын
But with one pointer you only dalete the node for you can't update the previous node link part so for updating the previous node link part you take two pointers
@amankumarsingh488 Жыл бұрын
First update and then delete.
@adamantiumcookieplayzz4050 Жыл бұрын
yes you can use one pointer to update like all you need is the [[[[[[current pointer to point to the previous node;so instead of position!=1 put position!=2]]]]]] ie, while(position!=2){ //position!=2 instead of position!=1 to point to previous node. current=current->link; position--; } current->link=current->link->link; but the problem with this is that you have to free up space which is being wasted. so rather do, while(position!=2){ current=current->link; position--; } temp=current->link; current->link=current->link->link; free(temp); temp=NULL; this is recommended as the memory occupied by the rogue node is freed up using the temp pointer. of course so you still need two pointers(temp and current) but inside the while loop you just need one, ie , the current pointer and it should positioned at the node at the previous position to the position where the node is to be deleted.
@kashidislam82294 жыл бұрын
sir please complete the datastructure course as early as possible
@revan25803 жыл бұрын
node *ptr=head; for(int i=0;ilink; ptr->link=ptr->link->link; Can I do this too?
@rishabhverma58483 жыл бұрын
how will u free the memory and make changes i =1 and i
@pulastyadas33514 жыл бұрын
Much awaited
@MortalKombatTS3 жыл бұрын
I didn't understand why we use the double pointer in this fuction, why doesn't it work if we use head like in the other functions?
@bbcbigblackuknowifuknow11482 жыл бұрын
we can also do like this bro while (pos-1>1){ ptr=ptr->link; } ptr->link=ptr->link->link; free(ptr->link); I think it is best to not move your head pointer unless it is the only option left
@DaiMoscv Жыл бұрын
Some implementations pass a pointer to pointer parameter to allow changing the head pointer directly instead of returning the new one.
@pulastyadas33514 жыл бұрын
Thanks a lot 🙏🙏🙏 keep uploading
@reverbism2 жыл бұрын
thank you 9/04/2022 at 6:40 am
@omkarkanase1349 Жыл бұрын
Thank you
@SurjeetSingh014 жыл бұрын
why have you stopped updating this series ? we are waiting for your next video , so please continue the course....
@nihalr3852 жыл бұрын
It's in their app. You need to pay!
@mr_blaze624 жыл бұрын
Thank you so much sir.❤️
@shail01242 жыл бұрын
Your del_pos() function could cause segmentation fault if position will be larger than size of List
@raghavachekuri72704 жыл бұрын
Try to put full course on compiler design also
@tulsigupta1173 жыл бұрын
Thank you sir
@sowmyar74022 жыл бұрын
Thanks a ton sir!
@gamerzbuddies6226 Жыл бұрын
congrats for 2m subs
@rahulsharmaaa4 жыл бұрын
Sir please upload more videos ASAP. pls......
@Nitro-kx7ok3 жыл бұрын
Thanku sir🔥😍🙏
@sudeepmulumudi3 жыл бұрын
helpful videos ,,,,,do moree
@kevinthomas16183 жыл бұрын
can we use a single pointer instead of two pointers?
@7s9n4 жыл бұрын
Amazing 💛
@anniamatthews6803 Жыл бұрын
amazing
@30_vineet174 жыл бұрын
but sir in this video you showed two programs which program we have to refer to delete a node in singly linked list.
@harshalkumar45383 жыл бұрын
in this video he showed us how to delete a node at a particular position, whereas in previous videos he showed how to delete a node a end or beginning.
@Moukraan3 жыл бұрын
thank oyu
@nithinv29693 жыл бұрын
why can't we use head as one of the parameter instead of double pointer?
@DaiMoscv Жыл бұрын
because we're not returning the head, if we want to change the head we must use double pointer.
@rishabkrishnakumar7446 Жыл бұрын
can we also use single pointer.
@accessdenied93933 жыл бұрын
We can also do the same task without double pointers: node *delete_at_pos(node *head, unsigned pos) { node *prev = head; node *curr = head; if( !head || pos < 0 || pos < count_nodes() ) { puts("something went wrong"); exit(1); } if (pos == 1) { head = curr->ptr; free(curr); curr = prev = NULL; return head; } while (pos != 1) { prev = curr; curr = curr->ptr; pos--; } prev->ptr = curr->ptr; free(curr); curr = prev = NULL; return head; }
@RORAVIKUMART3 жыл бұрын
it is better to send program link to download
@015_rounakraj94 жыл бұрын
Sir how many lectures it will take more to end single link list. Sir reply please
@AKSHATSINGHKSHATRIYA-r8c Жыл бұрын
Hello can someone please explain why are we passing address of head in del_pos function
@kajalmondal97454 жыл бұрын
Jaspreet Sir, i am facing too much problem to tackle the recursion problems. What should i do now please reply? (I watched your all videos related to recursion in c programming playlist)
@Linkario862 жыл бұрын
Does the Garbage Collector delete the unlinked Node in C#?
@shubhammane95632 жыл бұрын
sir how position variable gives us position of that particular node
@chinedudaniels28792 жыл бұрын
hello, what if we passed just *head instead of **head....would it still affect this function?
@DaiMoscv Жыл бұрын
yes it would, since we're not returning the head pointer, the head from the caller would always point to the same node. Note that the returning type is void, so the caller shouldn't update head every time when calling this function. However, by using pointer to pointer, we're actually moving the head pointer itself by reference. It's a same concept with changing variable by reference, instead of passing it as local variable.
@vadigegopinadh23913 ай бұрын
1 error generated
@Vineeth_Shankar4 жыл бұрын
What happens when there is one node in the linked list?
@pallaramkumar Жыл бұрын
int deleteAtCertain(struct node *head,int pos) { struct node *ptr; struct node *temp; ptr=head; int i; for(i=1;ilink; } temp=head; for(i=1;ilink; } temp->link=ptr->link; free(ptr); ptr=NULL; } Is this code good for delete at certain position or not without using double pointer?tell me please
@pritampatil4163 Жыл бұрын
How do u know that u have to delete that 2nd node only how will linked list find that 2nd node
@loganhawkins64863 жыл бұрын
Can you make the code in python? I am trying to implement in a program. Thanks
@animesan36877 ай бұрын
What if position is 5 or somthg greter than 3.
@bhargavsolanki63863 жыл бұрын
Still confusion😫
@rasoolknggnt5038 Жыл бұрын
Why is this so much confusing..😭😭 any one give me some tips
@soumyadipadak4 жыл бұрын
Sir,Please upload doubly linked list , stack , queue,tree ,serching, sorting asap, this will help us to prepare for placement this year
@ritabhsharma66273 жыл бұрын
Why do we have to use double pointer here....?? Is it possible to do this without using the double pointer...??
@rajeshprajapati66622 жыл бұрын
Without using the double pointer ? then i think you need to return head to update it in the main function.