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 efc4c40 commit abff8e0Copy full SHA for abff8e0
link-list/day10.js linked-list/day10.jslink-list/day10.js renamed to linked-list/day10.js
@@ -10,12 +10,14 @@ class Node {
10
}
11
12
class LinkedList {
13
+ // Todo: How to create LinkedList
14
constructor(value) {
15
this.head = new Node(value);
16
this.teal = this.head;
17
this.length = 1;
18
19
20
+ // Todo: How to add element in LinkedList
21
push(value) {
22
let newNode = new Node(value);
23
if (!this.head) {
0 commit comments