16:20 - Insert in a Linked List (First & Last) 26:50 - Display/Print a Linked List 30:50 - Delete in a Linked List (First & Last) 38:41 - Size of a Linked List 41:01 - LinkedList class (Collections Framework) Thank You
@5:45 She actually means that time complexity to "get" an element by index is O(1). While time complexity to "search" an element in an ArrayList is O(n) which is same as of linked list since we iterate over the entire list to search for a particular element.
@@mdsarfarazalam8452 Sir "Node next" will take the reference of node upcoming nodes. In runtime polymorphism we take reference of base class and use constructor of child class
Nice tutorial, within 48 min, got to know many of things, By which I became comfortable with linked list, Thanks Sarhda didi for making amazing explaination.
Very good idea of starting linked list before binary search. Because if you study binary search first then during practising on leetcode or any platform Usually public submitted their answers in advanced form which we are unable to understand.
06:07 Linked list is a data structure that consists of nodes linked together. 12:14 Linked list is a data structure that links different data together 18:21 Linked list is a data structure in which each element is connected to the next element through a chain of pointers. 24:28 Insertion and deletion operations are key in linked lists. 30:35 Traversal and manipulation of linked lists 36:42 Two key operations in Linked List are add and delete 42:49 Linked list operations in Java 48:50 Link list in Java can be used to add, remove, and traverse elements. Crafted by Merlin AI.
Thanku mam, first you created a base of what a LInkedList is by teaching to add delete the element from scratch and then next by collection framework thanks for the efforts......
I am a python user but, I learn concepts of these data structures and algorithms from here, Your style of teaching is awsome, So Thank you very much, Love from pakistan
Thank you for giving a clear understanding on a linked list. one suggestion please declare all the variables required in the beginning, I spent almost half an hour finding out where did u declared head variable in the beginning.
2nd problem -- it,s note a proper solution but try to solve the second problem --- public class ll1 { //linkedlist Node static class Node { int data; Node next; // method for to delete a nodes whose value is greater than given value static ll.Node deletenodes(ll.Node head, int rem){ ll.Node temp,p=head; if(head==null){ return null; } while(p!=null && p.data>rem){ temp =head; head = head.next; temp.next=null; } while(p.next!=null) { if (p.next.data>rem) { // Node p = head; temp = p.next; p.next = temp.next; temp.next = null; } else p = p.next; } return head; } //function to print linkedlist static void displaylist(ll.Node head){ ll.Node temp = head; while(temp!=null){ System.out.print(temp.data +" "); temp = temp.next; } } // utility function to crete a new node static ll.Node newNode(int x){ ll.Node temp = new ll.Node(); temp.data = x; temp.next = null; return temp; } public static void main(String[] args) { //start with the empty list ll.Node head = newNode(1); head.next = newNode(2); head.next.next = newNode(3); head.next.next.next = newNode(4); head.next.next.next.next = newNode(5); head.next.next.next.next.next = newNode(6); head.next.next.next.next.next.next = newNode(7); int rem = 4; head = deletenodes(head,rem); displaylist(head); } }
@7:40 time complexity to insert "at the start of linked list" is O(1) while the time complexity to insert at end of the list or in the middle of list is O(n) because first we have to traverse the list to reach that node after which we want to insert new node.
Your concept is so clear. All the very best wishes Betaa..Jio jee bharke..Am so proud of you.. Dear viewer, do not miss this video..Aap bahat aage jaaoge betaa.. keep it up 👍👍👍👍
Awesome 👌 the way of your teaching is outstanding... I wathed this video yesterday ... today i code all the methods without revisit the video ... there are many videos i watched to understand the LinkedList, but this is the best out of them.
i have tried to get it into my mind from last 4 to 5 days but not able to understand till watching before this video........ thank you so much......... i think best teacher in the coding era..... whose very much aware where students got stucked.... and knows very well how to get out of them..... again thank you so much..........
Hello Aman Bhaiya, There are few more concepts that we need as in college as professional, if possible if you can make video on these concepts of Java: Java API Packages Multi threaded programming Managing Error and Exception Managing I/O Files Java Collection Applet Programming AWT Event Handling JavaFX JDBC Java Networking Thank You
didi, i was need it with java because i am learning java for placement and you are giving java lacture and DSA using java. so thank and thanks apna college
I got a little emotional such a simple explanation In my college the linked list had started before OOps and I understand nothing and this is first time got to know that there are 3 types of linked list Thank You Apna College
Node head; Node head serves as the starting point or reference to the first node in the list. Without the head reference, there would be no way to access or traverse the list.
Mam really yrr aaj tk ek bhe lecture samaj me nahi aaya linked list kaa your way of teaching is so amazing from scratch 😍 . Full of full concept clear just keep it up ☺.
Can you please share time complexity cheat sheet which includes all data structures like in linkedlist insert at beginning, insert at any position,insert at last,delete at first, delete at last,delete at middle,search,sort etc
mannnnn ! I was just struggling with . I can't thank you enough for this. can you do some practice problems with the linked list. methods like removingeven indexes and create a new list with the evennodes, removing within range of two indexes. please I have a test soon. could you also cover binary trees in java.
16:20 - Insert in a Linked List (First & Last)
26:50 - Display/Print a Linked List
30:50 - Delete in a Linked List (First & Last)
38:41 - Size of a Linked List
41:01 - LinkedList class (Collections Framework)
Thank You
mam
i didn't understand inside addFirst method if( head == null)
here head where did it come from?
please hlp me out
@@mdmahmudulhassan1488 watch at 28.50
@@mdmahmudulhassan1488 Bro hmne phle hi head ko static Node declare kr dia tha ek baar dobara dekho
@@mdmahmudulhassan1488
While creating linked list class LL
LL{
Node head;
She has already created head in vedio watch carefully
💖
@5:45 She actually means that time complexity to "get" an element by index is O(1). While time complexity to "search" an element in an ArrayList is O(n) which is same as of linked list since we iterate over the entire list to search for a particular element.
Thanks Rinki.... I was thiniking the same and you clarified it.
@@amitray769 can you tell me how in "class node" node next variable written .i mean which oops concept is written here
@@amitray769 can you tell me how in "class node" node next variable written .i mean which oops concept is written here
@@mdsarfarazalam8452 Sir "Node next" will take the reference of node upcoming nodes. In runtime polymorphism we take reference of base class and use constructor of child class
Nice tutorial, within 48 min, got to know many of things, By which I became comfortable with linked list, Thanks Sarhda didi for making amazing explaination.
It's Shraddha!
This topic took me 2 days to understand nicely. Felt like a webseries. Thank you mam. Very engaging session.
Last few minutes and starting few minutes is a bonus knowledge for us.
These videos makes more sense to me when I forget the concepts in the middle of a problem. Best teacher💕
es wali video ke home work question ke Ans bhej skti ho
I love this channel. You are doing a noble job here. There is an enormous learning here. Again thanks.
Very good idea of starting linked list before binary search.
Because if you study binary search first then during practising on leetcode or any platform
Usually public submitted their answers in advanced form which we are unable to understand.
These contents are awesome. It would better if you can add English subtitles for international students like me. Cheers from Sri Lanka
Thanks for the video. It would be great if you could make a video on how to add/delete a node from the middle
Mam when you smile while teaching is the best part of this video 😀😇
And your method of teaching is very good 👍
06:07 Linked list is a data structure that consists of nodes linked together.
12:14 Linked list is a data structure that links different data together
18:21 Linked list is a data structure in which each element is connected to the next element through a chain of pointers.
24:28 Insertion and deletion operations are key in linked lists.
30:35 Traversal and manipulation of linked lists
36:42 Two key operations in Linked List are add and delete
42:49 Linked list operations in Java
48:50 Link list in Java can be used to add, remove, and traverse elements.
Crafted by Merlin AI.
Time complexity for accessing array element is O(1) and for linear search it's O(n).
Best lecture in linked list
Nice explanation with very ease. I have tried many videos for linked list but this is best video to learn linked list from scratch.
Thanku mam, first you created a base of what a LInkedList is by teaching to add delete the element from scratch and then next by collection framework thanks for the efforts......
Gajab mam
Saara concept clear ho gaya
KOTI KOTI NAMAN HAI AAPKO
I am a python user but, I learn concepts of these data structures and algorithms from here, Your style of teaching is awsome, So Thank you very much,
Love from pakistan
I am a python user also
Same here bro ♥
Great way of teaching. Touching the mind .
Even our teachers was not able to explain like u..👌👍🏻👍🙏
Thank you for giving a clear understanding on a linked list. one suggestion please declare all the variables required in the beginning, I spent almost half an hour finding out where did u declared head variable in the beginning.
mem jab jab aapka lecture dekhta hoon mera self confidence gir jaata hai
but mem aapka concept high lvl hai
Happy teacher's day mam through you we are learning the actual technology of modern age
Thankyou
2nd problem -- it,s note a proper solution but
try to solve the second problem ---
public class ll1 {
//linkedlist Node
static class Node {
int data;
Node next;
// method for to delete a nodes whose value is greater than given value
static ll.Node deletenodes(ll.Node head, int rem){
ll.Node temp,p=head;
if(head==null){
return null;
}
while(p!=null && p.data>rem){
temp =head;
head = head.next;
temp.next=null;
}
while(p.next!=null) {
if (p.next.data>rem) {
// Node p = head;
temp = p.next;
p.next = temp.next;
temp.next = null;
}
else
p = p.next;
}
return head;
}
//function to print linkedlist
static void displaylist(ll.Node head){
ll.Node temp = head;
while(temp!=null){
System.out.print(temp.data +" ");
temp = temp.next;
}
}
// utility function to crete a new node
static ll.Node newNode(int x){
ll.Node temp = new ll.Node();
temp.data = x;
temp.next = null;
return temp;
}
public static void main(String[] args) {
//start with the empty list
ll.Node head = newNode(1);
head.next = newNode(2);
head.next.next = newNode(3);
head.next.next.next = newNode(4);
head.next.next.next.next = newNode(5);
head.next.next.next.next.next = newNode(6);
head.next.next.next.next.next.next = newNode(7);
int rem = 4;
head = deletenodes(head,rem);
displaylist(head);
}
}
Apki video dekhar me coding basic puri tarha se sekh gaya thank you 🥰
Thankyou Ma'am for making it easy to understand.
Since morning I was stuck into this topic.
Onboarding to assignments now✈️
es wali video ke home work question ke Ans bhej skte ho
in the video she hasnt initialised the head variable, why is it not giving error?
Masha'Allah bohot umda.
Hii ,your session improve me in dry thinking, knowledge etc. Thank You , Miss
Really Lovely Explaination ..............................
@7:40 time complexity to insert "at the start of linked list" is O(1) while the time complexity to insert at end of the list or in the middle of list is O(n) because first we have to traverse the list to reach that node after which we want to insert new node.
exactlyy ,
if you know i have one question how can we check for head ==null without declaring it to a node type t=21:21
@@anilptl she mentioned at last
i have never been so grateful to understand hindi
We need this similar course in c++
It's better than previous one
You can learn concept from here and watch source code in cpp course.
This course is almost language independent.
or you can refer to channel code help .......for DSA series with C++
Muze to bhai behen lagte ye
@@manishbhamare1822 🙏😂😂
such a greate level explenation
Your concept is so clear. All the very best wishes Betaa..Jio jee bharke..Am so proud of you.. Dear viewer, do not miss this video..Aap bahat aage jaaoge betaa.. keep it up 👍👍👍👍
th-cam.com/video/2qk1KVB2YLs/w-d-xo.html C language
everytime i watch this video ... i learn a new thing
thanku dii and aman bhai
Your explanation is awesome 👍
Thank you didi you are the best teacher who clear my all doubts without asking it.❤
Wow nice timing di!!
I'm searching for this 😊👍
Thank you so much!!!
Hii
your way of teaching is so good that no-one can feel bored while watching your video.
where the head node is declared in here?
I watched the starting of code and there is no head declared but then too its not throwing any errors how??
same doubt
Declared at 28:46
aapse sikne k baad dubara padne ki jarurat nhi .great
Awesome 👌 the way of your teaching is outstanding... I wathed this video yesterday ... today i code all the methods without revisit the video ...
there are many videos i watched to understand the LinkedList, but this is the best out of them.
I canot thank more for these videos. Very much interactive and informative. I would surely look forward to having some sessions on Springboot, REST
Good and great teaching skill 😍
amazing lecture i have studied earlier but i always learn new things from your lectures
Excellent explanation,very helpfull
Thanks
i have tried to get it into my mind from last 4 to 5 days but not able to understand till watching before this video........ thank you so much......... i think best teacher in the coding era..... whose very much aware where students got stucked.... and knows very well how to get out of them..... again thank you so much..........
Cpp wale me bht easily smjh aa gya tha 😄
Great explanation mam ❤
Where is doubly linked list and circular?
Excellent Teaching Skills. By the way, can't define that you are laughing or speaking by looking you. That's a compliment. :)
In line no. 14, where did the "head" come from and what it's type
28:47
My all problems are solved by Mam Sharadha, Love from pakistan
Seriously means everything so well explained in detailed....superb effort.....👍
Seriously means very good reply....so well writtened in detailed...superb effort👍
👍🏾👍🏾
👍
The best thing is to understand using diagrams.Thankyou
Hello Aman Bhaiya,
There are few more concepts that we need as in college as professional, if possible if you can make video on these concepts of Java:
Java API Packages
Multi threaded programming
Managing Error and Exception
Managing I/O Files
Java Collection
Applet Programming
AWT
Event Handling
JavaFX
JDBC
Java Networking
Thank You
Durga software se karlo
You can learn from Smart Programming
Abdul bari sir ke java course se kar sakte ho
didi, i was need it with java because i am learning java for placement and you are giving java lacture and DSA using java. so thank and thanks apna college
Can u pls explain about asymptotic notation and time complexity. It will be helpful if u could do it.
I got a little emotional such a simple explanation In my college the linked list had started before OOps and I understand nothing and this is first time got to know that there are 3 types of linked list Thank You Apna College
In your college DSA is taught in java?
here, 20:48 if can't declare head and how can you use it???
Declare a public node head in class ll
Same question...
Good efforts 👍
Who were thinking Node Head is not declared and why editor is not showing error 🤔🤔😊
Same here dude, I was thinking this whole time... it was frustrating !!!!1
@@mayankupadhyay4447 same here.. i was in great confusion😑
Did you figure out how to fix that?
@@eashitadhillon1577 just declare
node head=null;
Check out notes
Great.... Easily Understand ✨
She is just like female version of Aman , same way of teaching.
th-cam.com/video/2qk1KVB2YLs/w-d-xo.html C language
Agree❣️
@@coding1415 ooo wow very smart ha 😂😂😂 jitne bhi famous channels H waha apni links paste kr aao😂😂good idea.
Ham ye kr rhe honge, aa rhe honge, ja rhe honge 😂😂
@@kirtithakur321 terai ko kyu dikkat hai bsdk
Thank you so much 🔥🔥🔥
Agar linkedlist pahle se tha to start main itna kyu karwaya interview ya placements main kaam aata hai kya
Best teacher ever world
on 20:40 from where you took the "head", is that any variable or its any inbuild keyword ?
Your answer is at 28:47
Check it out 🙂
@@soumyaranjanrout964 you just saved my day, dear
Thanks for this, God bless you!
where have you initialized "head"? please help someone!!!!
Hiii
Sukriya didi kafi Acche se bataya appne is topic ko
mam, please make sub-sections in the longer videos, easy to rewatch.
1 topic 1 video is always have good learning experience
More video means distraction
@@rajkumarmaurya9635 no i mean like time-stamps on same video.
Thank did...hat's to u didi....when i was at your age not able to grasped such a valuable knowledge and presentation...👍👍🏻👌👌
your teaching skill is so good!
But I am struggling to understand Hindi!
You can add subtitle!
You are a very GOOD person and always RIGHT
Thank u so much dii
The way of teaching is really exceptional
Thank you so much mam .I was searching for this kind of explanation and now I understand.God bless you 🙏
The way of teaching. I LIKE ♥
have u provided implementation of doubly and circular linked list in your any video?
Get a good book don’t rely only on these tutorials.
finally didi is back and firsttime i understand concept and some one say me where to practice progrming qp on linked list
Double linkedlist ka lecture kab upload hoga?
Thank a lot for this valuable video ♥ Helped me a lot !
head is not declared initially it shows red line in my vs code ...!!!
Node head;
Node head serves as the starting point or reference to the first node in the list. Without the head reference, there would be no way to access or traverse the list.
Thank you for explaining it very well and making it clear..
Video is very informative thanks Sharada didi
Good explanation but I'm sure no one can implement linkdelist in real-world . Can you please also explain with some custom classes ?
Thank you maam it helped a lot
DII.....we need important question in Data sturucture which is most frequently ask in interview
U r too good teacher..Thanku :)
hi, wonderful playlist.....can someone please guide me with some explanation about "HEAD" & "NEXT" declared in node class
Mam really yrr aaj tk ek bhe lecture samaj me nahi aaya linked list kaa your way of teaching is so amazing from scratch 😍 . Full of full concept clear just keep it up ☺.
Can you please share time complexity cheat sheet which includes all data structures like in linkedlist insert at beginning, insert at any position,insert at last,delete at first, delete at last,delete at middle,search,sort etc
I watched various video but when i watch this video then i cleared my doubt thanks shradha didi
mannnnn ! I was just struggling with . I can't thank you enough for this. can you do some practice problems with the linked list. methods like removingeven indexes and create a new list with the evennodes, removing within range of two indexes. please I have a test soon. could you also cover binary trees in java.
th-cam.com/video/2qk1KVB2YLs/w-d-xo.html C language
Yes problem practice is ncessasry
Good representation of linklist
Awesome
HYPNOTIZED BY YOUR MOMENTS OF HANDS..
please provide more lectures these are really helpfull
super the way you are teaching is very good
Muchas gracias agradeceria por favor si pondrian subtitulos al video me ayudaria a entender mejor, mil gracias.
maja agaya boleto full moz 🙂