We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c334a9 commit fecfe9dCopy full SHA for fecfe9d
DataStructures/Lists/CursorLinkedList.java
@@ -4,6 +4,7 @@
4
5
public class CursorLinkedList<T> {
6
7
+
8
private static class Node<T> {
9
10
T element;
@@ -13,20 +14,16 @@ private static class Node<T> {
13
14
this.element = element;
15
this.next = next;
16
}
-
17
- boolean isEmpty() {
18
- return element == null;
19
- }
20
21
22
23
private final int os;
24
private int head;
25
private final Node<T>[] cursorSpace;
26
private int count;
27
private final static int CURSOR_SPACE_SIZE = 100;
28
29
30
{
31
// init at loading time
32
cursorSpace = new Node[CURSOR_SPACE_SIZE];
0 commit comments