Insert one node at the head of the circular doubly linked lists using java

118 views Asked by At

I want to create a method that inserts one node at the head of the circular doubly linked lists using java. How I can I do this?

I know the first node to replace it with the new one, the same for the last one. I did not get how can I know the 'last' while the list is circular?

0

There are 0 answers