Skip to content

Commit 9300a4e

Browse files
Add what is Cursor Linked List (TheAlgorithms#2407)
1 parent dab6def commit 9300a4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DataStructures/Lists/CursorLinkedList.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
import java.util.Objects;
44

5+
/**
6+
* This class implements a Cursor Linked List.
7+
*
8+
* A CursorLinkedList is an array version of a Linked List. Essentially you have an array of list nodes but instead of
9+
* 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.
10+
*
11+
*/
512
public class CursorLinkedList<T> {
613

714
private static class Node<T> {

0 commit comments

Comments
 (0)