Add what is Cursor Linked List (#2407)

This commit is contained in:
aayushi-kunwar13 2021-10-08 22:08:08 +05:30 committed by GitHub
parent dab6def183
commit 9300a4e0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,13 @@ package DataStructures.Lists;
import java.util.Objects;
/**
* This class implements a Cursor Linked List.
*
* A CursorLinkedList is an array version of a Linked List. Essentially you have an array of list nodes but instead of
* each node containing a pointer to the next item in the linked list, each node element in the array contains the index for the next node element.
*
*/
public class CursorLinkedList<T> {
private static class Node<T> {