File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -34,32 +34,4 @@ export class Lesson12 {
34
34
return 'Tie' ;
35
35
}
36
36
}
37
-
38
-
39
-
40
- // getElementAt(head: ListNode | undefined, position: number): ListNode | undefined {
41
- // let current = head;
42
- // let index = 0;
43
-
44
- // while (current !== undefined) {
45
- // if (index === position) {
46
- // return current; // Return the node at the specified position
47
- // }
48
- // current = current.next; // Move to the next node
49
- // index++; // Increment the index
50
- // }
51
-
52
- // return undefined; // Return null if the position is out of bounds
53
- // }
54
-
55
- // getLength(head: ListNode | undefined): number {
56
- // let length = 0;
57
- // let current = head;
58
-
59
- // while (current !== undefined) {
60
- // length++; // Increment to keep count through each element
61
- // current = current.next; // Move on to the next element
62
- // }
63
- // return length;
64
- // }
65
37
}
You can’t perform that action at this time.
0 commit comments