toko2018
0
Q:

implement a linked list in typescript

	class LinkedListItem {
		value: any;
		next: LinkedListItem;

		constructor(val) {
			this.value = val;
			this.next = null;
		}
	}
0
1
2
3
4
5
6
	class LinkedList {
		private head: LinkedListItem;
		constructor(item: LinkedListItem) {
			this.head = item;
		}
	}
0

New to Communities?

Join the community