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)
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)
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;