Skip to content

Commit d3ce414

Browse files
author
jjcapparell
committed
chore: removed unneeded methods
1 parent 87d2de8 commit d3ce414

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

lesson_12/structs_ts/src/lesson12.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,4 @@ export class Lesson12 {
3434
return 'Tie';
3535
}
3636
}
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-
// }
6537
}

0 commit comments

Comments
 (0)