5 AnswersNew Answer
not an video, but a code with alot of comments, hope this still might help ... 😅 https://code.sololearn.com/cLIhZ0y0Kklv/?ref=app
In a Linked List you have depending ob implementation 2 classes: -LinkedList -LinkedListNode the LinkedList is used to make changes and access the list. the LinedListNodes are the actual structure. Inside the LinkedList we have a LinkedList-start which in the beginning holds null, because the list is empty. when we add an element (to the end) we test if the start is null, if it is we set it to a new LinkedListNode containing the element to be added, if it isn't null, we call it's function to add. The LinkedListNode has 2 attributes, content and next, they are self explainatory. Now when the method add of an LinkedListNode is called it tests if next is null, if it's not we call the function add of next if it is we set it to a new LinedListNode containing zhe content. There are many diffrent implementations, like adding 2 more classes for faster and easier recursion calls... hope this helps! happy coding! 😄
Rael Data structures are independent of proramming languages, you need to understand the concept. Having said that you need to tell exactly what you do not understand. You should not expect anyone will teach you from scratch. You said no links from the course, someone will paste some other link or tell you it's a list of nodes, where each node contain data and the link to next node in the list. What is the guarantee that you are getting it? the same thing is being taught in the course.
Anton Böhler Thanks you for your clear explanation , and yea i saw too much of code of linkedlist and differently implementations of those make me confused.that would be awesome if got a video plus step by step ,well btw thanks a lot
~ swim ~ i need something video or any to explain it,cuz in sololearn, the course just provide a list of code and i need a explaination step by step of those code.i also tried youtube and followed their constructions in intellj idea but some of theirs way are old.... the video around few years ago i mean