1

Does Java implement w-linkedlist as the implementation of java.util.LinkedList? If not, which algorithm is implemented?

Edit: Please read doubly-linkedlist (generally 'w' character is used casually for doubly)

2

2 Answers 2

4

This might be a starting point:

java.util.LinkedList

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah, it's open source for a while now. Just look at the code.
1

If I correctly understand your question, then the answer will be Yes, because the LinkedList.Node class contains links to the previous and the next elements:

Node<E> next;
Node<E> prev;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.