What a wonderful explanation. No time wasting, no bla-bla. Everything is explained in easy and understandable way. And what I love most is you guys use not only screen sharing but whiteboard too. Thanks a lot!
When I tried to understand this linkedList from all other tutorial videos. It makes me nervous. I can't get it. Then I watched this video. It's saved my day. Thank you. You're super. Well explained.
Your explanations are just great, thank you!! And your whiteboard drawings are a really helpful part of it - i heard about the use cases of both lists before but was not able to memorize .. but now i have a whitboard drawing picture in my head that will stay! 😁
You are the best sir !!! You explained the main point or we can say main difference between linkedlist and arraylist. It became easy to guess where to use them thanks a lot sir
Thank You Sir for this awesome and genuine content. This q looked difficult to me before but now its a piece of cake for me. All thanks to you Sir, May GBU with lots of love long life success happiness and enjoyment Thanks a lot again Oracle is the owner of java and in starting sun microsystem.
Greatest virtual teacher i have. Could you also do a little bit on O complexity especially the mathematical aspect of it . E.g O of n, n^2, x^n, nlog n and so on.Thanks a lot sir.
We can use linkedlist while getting data and array list while process the data.. so we need to make better arrangements to interchange types extremely fast
At 5:01, 'Since Linked List follows the concept of Double Linked List' seems totally inappropriate. Linked List is a self-referential structure being singly or doubly linked. Insertion or Deletion of an element in between is possible in both singly & doubly linked list.
Your way of teaching is excellent. Also i have enrolled your course in inuron. I have one question is Data structures is covered in Java Full Stack Course Job Guarantee by Inuron. I hope you will give the answer very soon thank you and love you 💞 sir.
Sir can u upload a video for upcasting and dow casting Clearly like what is upcasting and dow casting Why it's need inheritance in between two classes of upcasting and dow casting What is actually What is the use where we use upload with real time example
Hello Sir, Just wanted to clarify that from my understanding to inserting an element in a linked list we will have to traverse to that position before adding it. Hence the time taken for insertion on average in linked list is about the same as in array list.
In array list you can access the element on the first operation but then for every other element that follows, you have to follow at least 2 operations (for swapping). Considering arraylist with 10000 elements and if we need to insert to middle we go to middle element in 1 operation, and for the next 5000 elements, we do 2 operations each which totals to 10001 operations. Considering the same scenario with linked list, we go to the middle element with 5000 operations (ele = ele->next) and perform 4 more operations for insertion. Totally 5004 operations. So there is around 50% efficiency when inserting in middle
It might appear to students that LinkedList doesn't support indexing although he didn't say it. The thing is LinkedList implements a List interface so it will support indexing.
I am a bit confused regarding the time complexity of insertion which according to you is faster in linkedlist as compared to an arraylist and since TC (insertion) in arraylist is O(N), I assume it is O(1) in linkedlist according to you. But to insert element in between in the linkedlist as well, we will first have to traverse the entire list to that position, only then can we perform our insert operation and hence due to the traversal, shouldn't the TC be O(N) itself which is equivalent to the TC(insertion) in arraylist as well ?
public void insertByAge(Person newItem) - the insert method should add the Person object to the list such hat the list is ordered according to age (youngest to oldest) -i don't know what am i suppose to do in this method. if youd help me out wid this?
Woudn't you have to first traverse to the middle element of the linked list before adding the new node? So won't again that would become a O(n/2) or one can say O(n) only ? Which is what you'd also get in case of arrayList .. just a query?
This is all good but in the end it usually boils down to what you said in the one sentence "now in my project we are only using arralist but... ... " ;-)
I want to take input for arraylist at run time and I don't know that how much entry will user going to give..... So I don't know for how much times I have to write .add() function to get the values...... So what should I do ...to get the unknown numbers of values at run time in array list.
What a wonderful explanation. No time wasting, no bla-bla. Everything is explained in easy and understandable way. And what I love most is you guys use not only screen sharing but whiteboard too. Thanks a lot!
When I tried to understand this linkedList from all other tutorial videos. It makes me nervous. I can't get it. Then I watched this video. It's saved my day. Thank you. You're super. Well explained.
You are incredibly smart in teaching this material, thanks a lot.
Thanks so much!
I am from Ghana and I love your presentations. Thumbs up
ArrayList is used for storing and accessing data, and LinkedList to manipulate data.😊
side note : i now Understand GET and SET soo much better after watching this. Thank you so much. this content is so rich.
Such clear and concise explanations of the two data structures overall. Very good video!
Sir I never joined any java coaching but by seeing your video I cracked my technical interview,
Thank you sir
Your explanations are just great, thank you!! And your whiteboard drawings are a really helpful part of it - i heard about the use cases of both lists before but was not able to memorize .. but now i have a whitboard drawing picture in my head that will stay! 😁
Let me say, all of your videos have been super helpful. Thank you for taking the time to post them. They are appreciated.
Java was developed by sun microsystem. Later in 2010 java was purchased by Oracle. Now java is Oracle product
You are the best sir !!! You explained the main point or we can say main difference between linkedlist and arraylist. It became easy to guess where to use them thanks a lot sir
omg your videos make it so much easier to understand everything! thank you, for saving me!!
I am too same feeling
Amazing Explanation. Better than anyone else. thank you so much.
Thank you sir for clearing concepts. 🔥🔥🔥🔥
Java belongs to Oracle Corporation.
such a clean explanation for linkedlist and arrarlist. thanks for sharing your knowledge
Woww!! Cleared my doubts, Thank you man!
best explanation that I have ever heard... really good job!!!
i'm from saudi arabia.. thank you so much, btw we have much indian teachers in my college
Thank You Sir for this awesome and genuine content.
This q looked difficult to me before but now its a piece of cake for me.
All thanks to you Sir, May GBU with lots of love long life success happiness and enjoyment
Thanks a lot again
Oracle is the owner of java and in starting sun microsystem.
Greatest virtual teacher i have. Could you also do a little bit on O complexity especially the mathematical aspect of it . E.g O of n, n^2, x^n, nlog n and so on.Thanks a lot sir.
Adefemi E. Kolawole how underground program complex city..
Please help me
Thank you so much for help sir , you can't imagine how big is your impact ❤🙏🏽
the best tutorial you will get on linked list vs array list
Thank you Navin Reddy its really right explanation
All your videos are quick reference.. I can remember quite a lot once I listen to your explanation.. thanks
thank you bhide uncle your videos are lifesaver!
Perfect explanation 😁
You are born for this job
Seriously loved your all content..
Explanation is on point 👌
Thank you very much for this lecture.
I don't have big skills in programming and this video opened my mind on this topic.
Thank you for the demonstration .
your explanation is on point, thank you for biggest help
Telusko you are the best!!!
great job your explaination is awesome java belongs to I don't know
Navin Reddy sir is great.
Beautiful video
Nice explanation sir
wow, very clear explanation, thank you so much
Well done ! Keep on !
You did great explanation, god bless you
absolutely brilliant narration
We can use linkedlist while getting data and array list while process the data.. so we need to make better arrangements to interchange types extremely fast
very good tutorial. very clear and well explained. thank you for this.
thank you for saving my life before the test
Good 👍👍👍👍👍
At 5:01, 'Since Linked List follows the concept of Double Linked List' seems totally inappropriate. Linked List is a self-referential structure being singly or doubly linked. Insertion or Deletion of an element in between is possible in both singly & doubly linked list.
Yes, rightly remarked. His explanation was quite contrary.
you are a very good teacher. May Allah reward you.
Thank you so much for your videos sir. They were very helpful 👍
Your way of teaching is excellent. Also i have enrolled your course in inuron.
I have one question is Data structures is covered in Java Full Stack Course Job Guarantee by Inuron. I hope you will give the answer very soon thank you and love you 💞 sir.
Good job man..keep it up!
Sir can u upload a video for upcasting and dow casting
Clearly like what is upcasting and dow casting
Why it's need inheritance in between two classes of upcasting and dow casting
What is actually
What is the use where we use upload with real time example
java was Devoloped by Sun Company,Later owned by Oracle...
You are awesome in teaching
Explanation is on point, thank you.
excellent sir really good class about array and linked array list
Amazing explanation, thanks.
Thanks for great explanation :)
Handsoff sir. Oracle owns the java
Thanks nice explained
Great explanation buddy! thanks!
You explained the right point. Thanks
Very well explained! Thanks sir!
u are a great sir
Hello Sir, Just wanted to clarify that from my understanding to inserting an element in a linked list we will have to traverse to that position before adding it. Hence the time taken for insertion on average in linked list is about the same as in array list.
In array list you can access the element on the first operation but then for every other element that follows, you have to follow at least 2 operations (for swapping). Considering arraylist with 10000 elements and if we need to insert to middle we go to middle element in 1 operation, and for the next 5000 elements, we do 2 operations each which totals to 10001 operations. Considering the same scenario with linked list, we go to the middle element with 5000 operations (ele = ele->next) and perform 4 more operations for insertion. Totally 5004 operations. So there is around 50% efficiency when inserting in middle
Thank you well explained.
Super Sir...
very good explanation! Thank you!
Wow. Useful. From PH 1st year college as BSCS LOL
You are doing Great Sir
So simply he has described this. Thanks Mr.Reddy.
Good Explanation.
U are just phenomenal.... You shifted to Hyderabad. Open your institute
OH MY GOODNESS THANK YOU SO MUCH. DEFINETLY SUBSCRIBING, YOU'RE THE BEST KEEP UP THE GREAT CONTENT!!! :D
Hey buddy, thanks for the tutorial.
It might appear to students that LinkedList doesn't support indexing although he didn't say it.
The thing is LinkedList implements a List interface so it will support indexing.
Thanks for the great explanation about insert and remove in the list. Why is the search slow in the linked list?
its very easy ans for an interview without any confusion
I am a bit confused regarding the time complexity of insertion which according to you is faster in linkedlist as compared to an arraylist and since TC (insertion) in arraylist is O(N), I assume it is O(1) in linkedlist according to you. But to insert element in between in the linkedlist as well, we will first have to traverse the entire list to that position, only then can we perform our insert operation and hence due to the traversal, shouldn't the TC be O(N) itself which is equivalent to the TC(insertion) in arraylist as well ?
Good teacher !
public void insertByAge(Person newItem) - the insert method should add the Person object to the
list such hat the list is ordered according to age (youngest to oldest) -i don't know what am i suppose to do in this method. if youd help me out wid this?
Woudn't you have to first traverse to the middle element of the linked list before adding the new node? So won't again that would become a O(n/2) or one can say O(n) only ? Which is what you'd also get in case of arrayList .. just a query?
Great explanation. Thanks~
This is all good but in the end it usually boils down to what you said in the one sentence "now in my project we are only using arralist but... ... " ;-)
you are amazing! thanks for the video
great explanation, thanks
great explanation, thank you!
Good Video
thanks a loooot ;;; useful video
Very good, thanks
this is really good. Thanks a lot.
Awesome sir
Thanks Bruhhh from 100KPlusGroup
hello naveen,can u make videos about performance tuning in java
thanks for video sir
Question : 9:00
Answer : Oracle Corporation
I want to take input for arraylist at run time and I don't know that how much entry will user going to give.....
So I don't know for how much times I have to write .add() function to get the values......
So what should I do ...to get the unknown numbers of values at run time in array list.
Thank you so much
Sir, is there full DS course videos ??
Can u please show if there
hi sir can you give a brief explanation of all operations and methods that can be used in all the collections please
I compared the performance of both ArrayList and LinkedList while inserting new elements at random indices.
But found that ArrayList is faster.