Skip to content

Commit abff8e0

Browse files
committed
learn about Linkedlist
1 parent efc4c40 commit abff8e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

link-list/day10.js renamed to linked-list/day10.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ class Node {
1010
}
1111

1212
class LinkedList {
13+
// Todo: How to create LinkedList
1314
constructor(value) {
1415
this.head = new Node(value);
1516
this.teal = this.head;
1617
this.length = 1;
1718
}
1819

20+
// Todo: How to add element in LinkedList
1921
push(value) {
2022
let newNode = new Node(value);
2123
if (!this.head) {

0 commit comments

Comments
 (0)