#6 Linked List Implementation in Java Part 2 | Data Structures

preview_player
Показать описание


Linked List implementaion in Java without using Collection

We will use Eclipse IDE here
In this video we will see :
- Operations of Linked list
- insert at start
- insert at Index

- An example explaining above operation

Linked list is a linear collection of data elements, in which linear order is not given by their physical placement in memory.
Instead, each element points to the next.
It is a data structure consisting of a group of nodes which together represent a sequence.
Under the simplest form, each node is composed of data and a reference (in other words, a link) to the next node in the sequence.
This structure allows for efficient insertion or removal of elements from any position in the sequence during iteration.

Editing Monitors :

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

You should add return; in the if(index==0) because it is going to continue doing everything after that code and it is going to put the element twice.
The code should be like this:
if(index==0)
{
insertAtStart(data);
return;
}


Other than that, great video. It helped me a lot. Thanks.

maya.n
Автор

Great Video! No doubt
Just one improvement we can do in this.
In insertAt() method try to put the if condition at the beginning of the line and after calling insertAtStart() method put a return statement.

if(index == 0){
insertAtStart(data);
return;
}

Edit: I saw in the next video you have made the correction and accepted your mistake. This makes you even greater!

Misdaque
Автор

When you move your cursor to paint, can you highlight the cursor? It's hard to follow where you are pointing to.

LynN-hehe
Автор

Best explanation of the topic so far, congrats, keep up the great work

void_godzpower
Автор

put else after the "if" block for the rest of the code of insertAt method or else the added element will get added twice in the list..

anuragbhattacharjee
Автор

Great Video... just one thing--- diagram should be crystal clear while explaining or actually change the pointer of drawing pen in your MS paint as that is hardly visible.

navjhs
Автор

Excellent video, it was very informative! Just to note (for others), in the insertAt(int data ) method, once we check if the index == 0 and if so we pre-append the data. At that point we have to type return; Because if not, the execution will still continue and add the value again in the for loop.

rissandimo
Автор

No one can explain better than you.!!Thank you sir ..finally i understood the concept of LL

subhamagarwal
Автор

Very nice explanation sir I feel very good while seeing this video because how well explained you it make me very clear and because of I watched your video able to make program of linked list feel very proud I pray to continue making this type of video which will help students like me to get knowledge and make them self and knowledgeable person thank you

learnandearnakashrdpatel
Автор

this is the best explanation of Link List thank you for sharing

nebilgokdemir
Автор

At first it was like rocket science to me😅, After watching these videos several times finally got it, Thank you sir.

pradeepweerasinghe
Автор

Your explanation is great sir with the diagram which helped a lot in understanding the concept

AnkitKumar-xpiv
Автор

Your channel has some really great content, but the way you speak is like playing the whole video in 1.5 of the original speed...still many thanks for the detailed explanation and demonstration of how it works in Java!

brucema
Автор

Perfect explanation, thank you so much!

milaismyname
Автор

The best video explanation for linkedlist in java so far...

FaizanKhan-gfaizank
Автор

It seriously was very confusing when you were stating the n.next part.

Spent my 3 straight hours and still didn't got anything after node.next=n.next😶
Although, Thanks for your efforts sir.
Love and Respect 🙏🏻💕

yatinpandey
Автор

Can't see the cursor when you are pointing in paint. :(

aaronquitoriano
Автор

Thank u sir for kind effort to teach us... I am really happy having understood this part

swayamprakashsahoo
Автор

Thank you sir for explaining in
Such a simple words

akshaycoder
Автор

You Explain Better Than My Professor Thanks

mewnine