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 667d8c4 commit c992ea8Copy full SHA for c992ea8
18-linkedList.js
@@ -25,6 +25,7 @@ class LinkedList {
25
// Insert first (Assign the resulting node to the head)
26
insertFirst(data) {
27
this.head = new Node(data, this.head);
28
+ // this.insertAt(data, 0);
29
}
30
31
// Size method - Return the number of nodes in the linked list.
@@ -43,6 +44,7 @@ class LinkedList {
43
44
// GetFirst - Returns the first node (the head) in the linked list.
45
getFirst() {
46
return this.head;
47
+ // return this.getAt(0);
48
49
50
// GetLast - Return the last node (the tail) in the linked list.
@@ -58,6 +60,8 @@ class LinkedList {
58
60
59
61
62
return listNode;
63
+
64
+ // return this.getAt(this.size() - 1);
65
66
67
// Clear - Clears all the node, size becomes 0.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments