How to insert node at the beginning of a Doubly Linked List in Java ?

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

Watch all my playlist here:

Want to land a software engineering job in the IT industry? This course - 'Visualizing Data Structures and Algorithms' is here to help. The course walks you through multiple Java algorithms, data structures problems, and their solutions with step by step visualizations, so that you are actually learning instead of blindly memorizing solutions.

The course covers in and outs of Data Structures and Algorithms in Java. Java is used as the programming language in the course. Students familiar with Javascript, Python, C#, C++, C, etc will also get to learn concepts without any difficulty. The implementation of various Algorithms and Data Structures have been demonstrated and implemented through animated slides. It covers many interview room questions on Algorithms and Data Structures. The questions and solutions are demonstrated by -

1. Animated slide. (To make visualization of algorithms faster)
2. Coding algorithm on IDE.

The course covers topics such as -
0. Algorithm Analysis
1. Arrays
2. Matrix
3. Singly Linked List
4. Doubly Linked List
5. Circular Singly Linked List
6. Stacks
7. Queues
8. Binary Tree
9. Binary Search Tree
10. Graphs
11. Priority Queues and Heaps
12. Recursion
13. Searching
14. Sorting
15. Strings
16. Trie Data Structure
17. Dynamic Programming
and many more ...

#dsa #algorithms #coding
Рекомендации по теме
Комментарии
Автор

Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over YouTube with java implementation and found this. Hats Off To You Man..Excellent Work. GOD BLESS YOU :)

shubhamagarwal
Автор

FINALLY FOUND A VIDEO THAT HELPED ME UNDERSTAND DOUBLY LINKED LIST INSERTION😭😭😭😭A lot of thanks and appreciation!

abdallahalmanasrah
Автор

thank you for making this whole series! i have watched it all to the end. tremendous help for learning programming!

LoweHenry
Автор

The best explanation I have watched so far!

will
Автор

This DSA series is really helpful Sir. With the help of animation I am able to visualise it easily.Expecting a java video playlist like this. I was really struggling in DSA and after watching the tutorials I am able to understand the DSA concepts really well.God Bless You Sir

VishnuK-fyhr
Автор

do we not need to specify that newNode.prev = null once it is the head?

-ix
Автор

Hello, Thanks for amazing tutorials.

In the playlist, video 51 should come first and then video 50 in the right order.

dame
Автор

U have explained in a very understandable way...tq

sau
Автор

Great video that explained doubly linked list so well

manishchoudhary
Автор

thanks, a lot sir you explained every concept step by step

astronomycosmology
Автор

Thanks a lot for your work sir, can you tell me how you can use isEmpty() without any object of doublyLinkedList and it work normaly ?

miasevda
Автор

Great Explaination sir... But how to build program solving logic so that I can crack product based Companies?

anuragsingh
Автор

Great job done and very well explained.

rahulsangore
Автор

hie Dinesh, if it is empty, do we need to write like head = tail = newNode ?

asaduzzaman
Автор

Sir, in line number 63 in your code, if i write head = newNode instead of tail = newNode, i'm getting wierd output...i didn't understand the reason why?

pentainamerica
Автор

Thank you so much...It is really well explained

raziaali
Автор

sir giving null pointer exception since at the beganing the next can't point to null..
what to do sir??

dharambirkumar
Автор

I don't understand. Why for the case (the list is null), the head and tail will point to the same Node?

I thought after typing the "head = newNode", it means there will be two Nodes in the list. One is head, the other is tail. They are all the same as newNode.

Hateusernamearentu
Автор

Thanks Dinesh, this was very helpful!

RamboRamsey
Автор

Can I ask a question ? What is the purpose of the lenght++ there ?

tirsocolon
join shbcf.ru