Sir really u are teaching very well by giving examples and covering entire concepts sir ,very much impressed sir do more videos for us sir.thanks a lot sir.
@shubhamgaikwad21962 жыл бұрын
Thankyou thankyou so much sir....i understand whole concept.....ur best teacher....to teach concept and give the students very properly... I respect u sir
@Yash-gj2xy5 жыл бұрын
Sir, we are waiting for more videos on data structures, please upload soon And your teaching level is very Excellent👌
@sayantanmondal86302 жыл бұрын
Awesome Explanation Sir, I wasted 4 days to understand this and finally got it here.
@mohammedabrar1284 Жыл бұрын
He is explaining better than my lecture But try to give notes for the given topics It helps the viewer very much
@prashasti7985 жыл бұрын
Sir your teaching style is so so good👏👏
@pratikjussal13674 жыл бұрын
Sir, in for loop we will have( i < pos ) or ( I
@omkarpukale42384 жыл бұрын
as the node content address of next element
@balakrishnana.k32934 жыл бұрын
After disconnect the node , we should delete the temp bcoz it occupying some memory location so wasted memory space so that we have to delete temp like , free(temp);
@prathamdolle52714 жыл бұрын
Exactly only disconnecting won't help instead directly delete it thus it will get disconnected automatically
@likita79994 ай бұрын
Sir thank you much sir actually I saw lots of video but this is a great once I understand
@keerthiravanan28842 жыл бұрын
Very nice, thanks for u effort of teaching the concept very simple and easy understanding
@divyanshusharma774 жыл бұрын
Sir in the for loop condition you gave statement inside (i
@jjayasankar99574 жыл бұрын
Exactly searching for this comment
@adityahegde96174 жыл бұрын
it should be (i
@dagadnikhil28464 жыл бұрын
i
@gamerdon63 жыл бұрын
For I=0 itself the address part contains the address of next node so the temp will start pointing to the next node that is why I
@tamilselvans95303 жыл бұрын
Yes, i
@mickyman7533 жыл бұрын
we can also use just the head variable instead of using both head and tail . only change will come when we are inserting at end ,here we can use tail->next=new ,but for just head variable case ,we will have to traverse till last node
@peterjone49533 жыл бұрын
Fascinating!!, The easy way to understand the data structure
@swapniljaiswal49565 жыл бұрын
Wrote the full program here:#include #include int value; struct node { int data; struct node *next; }*new,*head,*tail,*temp,*current,*prev,*next; void create() { new=(struct node*)malloc(sizeof(struct node)); printf("Enter the value: "); scanf("%d",&value); new->data=value; new->next=NULL; } void insert() { create(); if(head==NULL) { head=new; tail=new; } else { tail->next=new; tail=new; } display(); } void display() { printf("Updated link list is: "); temp=head; while(temp!=NULL) { printf("%d ",temp->data); temp=temp->next; } } void insertatbeg() { if(head==NULL) printf("No Linked List found."); else { create(); new->data=value; new->next=head; head=new; display(); } } void insertatend() { if(head==NULL) printf("No Linked List found."); else { create(); new->data=value; tail->next=new; new->next=NULL; tail=new; display(); } } void insertatmid() { if(head==NULL) printf("No Linked List found."); else { create(); temp=head; int pos,i; printf("Enter the position where new node is to be inserted: "); scanf("%d",&pos); for(i=0;inext; } new->data=value; new->next=temp->next; temp->next=new; display(); } } void deleteatbeg() { if(head==NULL) printf("No Linked List found."); else { temp=head; head=head->next; temp->next=NULL; display(); } } void deleteatend() { if(head==NULL) printf("No Linked List found."); else temp=head; while(temp->next!=tail) { temp=temp->next; } temp->next=NULL; tail=temp; display(); } void deleteatmid() { if(head==NULL) printf("No Linked List found."); else { temp=head; int pos=0,i; printf("Enter the position which you want to delete. "); scanf("%d",&pos); for(i=0;inext; } temp->next=temp->next->next; display(); } } void count() { if(head==NULL) printf("No Linked List found."); else { int count=0; temp=head; while(temp!=NULL) { count++; temp=temp->next; } printf(" Total number of nodes is : %d ",count); } } void reverse() { if(head==NULL) printf("No Linked List found."); else { current=head; while(current!=NULL) { next=current->next; current->next=prev; prev=current; current=next; } } head=prev; display(); } int main() { printf("Press: 1.Insert a new value. 2.Display all elements. 3.Insert at beginning. 4.Insert at End. 5.Insert in middle. 6.Delete at beginning. 7.Delete at End. 8.Delete in between. 9.Count total number of nodes. 10.Reverse 0.Exit"); int choice; do { printf(" Enter your choice: "); scanf("%d",&choice); switch(choice) { case 1: insert(); break; case 2: display(); break; case 3: insertatbeg(); break; case 4: insertatend(); break; case 5: insertatmid(); break; case 6: deleteatbeg(); break; case 7: deleteatend(); break; case 8: deleteatmid(); break; case 9: count(); break; case 10: reverse(); break; case 0: printf("Exited successfully"); break; } }while(choice!=0); }
@kshitijjaiswal12265 жыл бұрын
Thanks bro. Appreciate it!!!!
@adityapathak17485 жыл бұрын
thanks bhai ….. sabse payara kaam toh tune kar diyaa … cheers
@bhanuprasadbaddam1464 жыл бұрын
showing error after at *new
@shriramshankardash78463 жыл бұрын
code is available at google
@deepanmn47603 жыл бұрын
@@bhanuprasadbaddam146 new is key word so change it like newn or news it will not show error
@sandipanmajumder9419 Жыл бұрын
ONE OF THE BEST DSA PLAYLIST EVER ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
@inspiresouls4849 Жыл бұрын
baaga kastapaduthu chepparu, chala thanks
@mahipadabeula53523 жыл бұрын
Sir thanks for giving lot of information.your videos are very useful for us.we are expecting more videos from you sir.
@timmy22992 жыл бұрын
can u please put the entire codes as well... so as to better understand .by pasting the same in compilers ........u teach great
@sriharshavikruthi50475 жыл бұрын
Sir can you upload full program for inserting,deleting and display
@crazy_boi_teju__82434 жыл бұрын
Yes sir... Plzz post... Full program... In this way.....
@kamalverma9683 жыл бұрын
Please reply @Sundeep Saradhi Kanthety.. condition of for loop is correct or not??
@shaktiraj9584 жыл бұрын
At specific position, I think there should be braces for for loop until it reaches the specific position then further command will execute, kindly recheck it
@omkarpukale42384 жыл бұрын
he is just explaning the things by assuming that you know the basic of programming u should know how to design it
@mickyman7533 жыл бұрын
in my college they said to use free function on that temp node to delete the memory after the head variable is shifted to next node instead of making it address field null(here i am saying delete at beginnng case ,but we use free(temp); in every delete node function.
@shushmar3683 жыл бұрын
Session was Wonderful sir
@akshayshinde24035 жыл бұрын
thanks sir for step by step proper explanation.
@201vlogs94 жыл бұрын
Great teaching mastaaru
@rachitamishra33065 жыл бұрын
Thank you soo mch sir... For such a fruitful vdo
@ramdarling5174 жыл бұрын
Thank u for explaining..keep going on sir
@SanjuSharma-cd3jq3 жыл бұрын
Sir I think we not only break the connection.... But we have to free the memory too
@pankajchauhan46775 жыл бұрын
at beginning : temp=head head=temp->next i think this is correct
@arastusharma4395 жыл бұрын
Both are valid since intially head and temp both are pointing at same node
@abhishekgouda40293 жыл бұрын
Sir u are amazing thank u for making videos 🙏🙏❤
@elieelia96753 жыл бұрын
you are a genius
@manirahulzallipalli73913 жыл бұрын
its very useful sir
@madhav_agrawal5 жыл бұрын
But here in the deletion from specific node the node to be deleted is not free up from the memory which is not good from programming point of view , how to free the memory along with the node
@sundeepsaradhi5 жыл бұрын
Just update the next and write the free( ) function to release the memory
@madhav_agrawal5 жыл бұрын
@@sundeepsaradhi will it work because the link to the node to be deleted has been broken, that node is permanently lost.
@chandrachandu73434 жыл бұрын
Sir u r videos r easy to understand 💯👌..but it can be wrote or not on jntua exams plzz give me feedback sir....🙏🙏🙏
@pesforeverad96933 жыл бұрын
In the for loop should the second statement..... should be out of the loop?
@anagondiobulesu99323 жыл бұрын
Sir tell the class with perfect coding like programming example
@saikiranmaragouni13643 жыл бұрын
Sir if we delete 30(pos 2) than 30 of next should be null or not ? " temp->next->next=NULL "
@sureshmunisamy59334 жыл бұрын
awesome! explanation
@chitrarajshekar30034 жыл бұрын
Thank you sir
@souvikmukhopadhyay4045 жыл бұрын
Nice sir
@fruitlanguage6784 жыл бұрын
Sir 10 address field has an arrow but other address field no arrow this is correct or not
@KirubelMan-fb2ki2 ай бұрын
thank you
@arastusharma4395 жыл бұрын
Why can't we use ? temp->link=pos->link (in deletion from specific position)
@swapniljaiswal49565 жыл бұрын
becouse pos is not defined as a pointer in struct node data type
@royalravikumar3041 Жыл бұрын
Sir,how to delete the last node by using the tail pointer..
@dileepkumartentu87073 жыл бұрын
Sir in the for loop Condition if position value changes its not working, Can you explain how ?
@srinivasraosangamreddy56743 жыл бұрын
Nice..
@kashifakousar325 жыл бұрын
Hi sir, Can you tell me plz Delete a node at specific position is same as delete a node anywhere.Plz.Reply me soon..
@gangothrikurichety98762 жыл бұрын
Tnq you so much sir
@vineelainturi4982 Жыл бұрын
Sir data structures full video share chayara plz
@karrisrisatyavenkatakishor47703 жыл бұрын
sir after disconnecting the node arent we supposed to disconnect the deleted node plz reply sir
@balas12635 жыл бұрын
sir, the node which u have deleted is not deleted permanently but still it is pointing towards 4000 address location. and if i goes wrong let me know....sir
@sundeepsaradhi5 жыл бұрын
Yes You are correct and if you need to remove permenantly you have to use free() function to free up the allocated memory
@balas12635 жыл бұрын
@@sundeepsaradhi could you please tell me how to free up that location with free function.....sir
@gsharthika5925 жыл бұрын
Sir please writer a program for insertion and deletion of elements using linked list in c++,seperately
@ayushmittal96663 жыл бұрын
sir you are inserting at 3rd pos so shouln't pos be equal to 3 instead of 2 ...
@shivaprasadusakoyala8374 жыл бұрын
sir link between 30 and 40 is still present by this 2 lists are present please clarify me
@govardhanreddy96445 жыл бұрын
how can we say 1st element as head and last element as tail? is it predefined or how to assign it?
@sundeepsaradhi5 жыл бұрын
Hi We are initializing both head and tail at first node and after insertion of every node we are updating tail position. Hope your doubt has been clarified. Thank you for your support towards our channel
@bhanusankar45703 жыл бұрын
Can we use keyword "continue" to delete specific node?
@jvanush73294 жыл бұрын
Sir can you write program for this topic
@BiqSam20023 ай бұрын
thanks sir
@aanchalsharma52645 жыл бұрын
Condition in while should be temp-next!=NULL PLEASE TELL IF I AM WRONG
@pritamsuryawanshi5 жыл бұрын
i have the same question
@arastusharma4395 жыл бұрын
No! if we use temp->next!=NULL in while loop then the temp will be pointing at the last location ,so when you delete temp how will you assign tail or we can say how will you assign null to new tail!
@kartikbhat11968 ай бұрын
Sir please provide full code from creating, inserting, deleting
@rahuljangir36453 жыл бұрын
Sir i am simply a graduate(BBA) can i get job in a IT company as a programmer or software developer. I have knowledge of c,c++ and data structure please anyone rply..
@nareshyadav97693 жыл бұрын
Super ❤❤❤
@pritamsuryawanshi5 жыл бұрын
i think Condition in while should be temp-next!=NULL would it be wrong..please answer asap
@arastusharma4395 жыл бұрын
No! if we use temp->next!=NULL in while loop then the temp will be pointing at the last location ,so when you delete temp how will you assign tail or we can say how will you assign null to new tail!
@BCMSHAMEERAHFATHIMAR2 жыл бұрын
Sir pls gives us full example program ..
@bachalakurisumathi52112 жыл бұрын
miru cheppaka doubts untaya sir
@ajay50674 жыл бұрын
What is use of " temp=temp->next"
@sujaypv7203 жыл бұрын
To move the temp to next position
@Salman_Siddiqui71713 жыл бұрын
can we write temp-->next as next(temp) ?
@PIYUSH-lz1zq4 жыл бұрын
best
@humanplanet87285 жыл бұрын
At 13:49 can I write tail=temp; above temp->next=null; will I still get the output
@sundeepsaradhi5 жыл бұрын
Yes you can write it.
@chandragirinaresh12404 жыл бұрын
❤❤❤❤❤
@viralyoutubeshorts2324 жыл бұрын
why cant we first place null and then change the head
@yarramneninikhil12994 жыл бұрын
Sir element free cheyaalsina avasaram ledha sir
@sundeepsaradhi4 жыл бұрын
Hi Yes we have to free the memory by free( ).
@shaibalmandal16414 жыл бұрын
should we free the memory?
@rahulnegi68954 жыл бұрын
it is same as making it NULL
@yashdhiman53772 жыл бұрын
Plz give a full proper program
@VikashKumar-kc7mr5 жыл бұрын
great sir
@sundeepsaradhi5 жыл бұрын
hi vikash Thanks for your support towards our channel.Share our channel with your friends and keep following our channel.
@SravanthiEnugula-xu3kp9 ай бұрын
Sir this topic not understood 😢
@anushkachoudhury38775 жыл бұрын
Sir every time u tell us to post our doubts in comment section but u never clear them
@sundeepsaradhi5 жыл бұрын
Hi Sorry for that pls tell me what is your doubt
@anushkachoudhury38775 жыл бұрын
@@sundeepsaradhi Sir, for deleting from any position we run the loop from i=0 to inext; temp->next=new_node; new_node->next=temp 1; So my question is why r we making new node equals temp 1 in the last line?
@vinuthag51602 жыл бұрын
Need in cpp
@Rajamani-px4ch3 жыл бұрын
𝘵𝘯𝘲 𝘴𝘪𝘳
@Rakibul_52 Жыл бұрын
#include #include struct node{ int data; struct node*next; }*head,*tail; void creation() { int n; printf("Enter the Size= "); scanf("%d", &n); int i = 1; while (i data = value; newnode->next = NULL; if (head == NULL) { head = newnode; tail = newnode; } else { tail->next = newnode; tail = newnode; tail->next=head; } i++; } } void insertAtfist(){ int value; printf("Enter the value DO!you insert= "); scanf("%d",&value); struct node*newnode; newnode=(struct node*)malloc(sizeof(struct node)); newnode->data=value; newnode->next=head; tail->next=newnode; head=newnode; } void insertAtlast(){ int value; printf("Enter the value DO!you insert= "); scanf("%d",&value); struct node*newnode; newnode=(struct node*)malloc(sizeof(struct node)); newnode->data=value; tail->next=newnode; newnode->next=head; tail=newnode; } void specific(){ int n; int i=1; printf("Enter the position= "); scanf("%d",&n); struct node*ptr=head; while(inext; i++; } int value; printf("Enter the value= "); scanf("%d",&value); struct node*newnode; newnode=(struct node*)malloc(sizeof(struct node)); newnode->data=value; newnode->next=ptr->next; ptr->next=newnode; } void deleteAtfirst(){ struct node *temp; temp=head; head=head->next; tail->next=head; free(temp); } void delleteAtlast(){ struct node*temp; temp=head; while(temp->next!=tail){ temp=temp->next; } tail->next=NULL; temp->next=head; tail=temp; } void travase(){ struct node *temp=head; while(temp->next!=head){ printf("%d->",temp->data); temp=temp->next; } printf("%d->",temp->data); } void deleteSpecficPosition(){ int n; int i=1; struct node*temp,*newnode; temp=head; printf("Enter the positon = "); scanf("%d",&n); while(inext; i++; } temp->next=temp->next->next; } int main(){ creation(); //insertAtfist(); //insertAtlast(); // specific(); //travase(); //deleteAtfirst(); // delleteAtlast(); //deleteSpecficPosition(); travase(); } As a newcomer, it's completely normal to encounter numerous errors during your initial attempt (sending love from Bangladesh). Making mistakes is an integral part of the learning process, and it's how we grow and improve. Embrace these challenges as opportunities for growth and don't hesitate to seek help or explore different approaches. Remember, everyone starts somewhere, and with practice, you'll gain confidence and proficiency in no time. Love and support from Bangladesh! 😊