Skip to content

Commit 1a4f18e

Browse files
committed
chapter 05: [LinkedLists]
1 parent c922b60 commit 1a4f18e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"nyc": "^11.2.1",
7272
"ts-node": "^3.3.0",
7373
"tslint": "^5.7.0",
74-
"typescript": "^2.6.0-dev.20171014",
74+
"typescript": "^2.5.3",
7575
"webpack": "^3.7.1",
7676
"yargs": "^9.0.1"
7777
}

src/ts/data-structures/doubly-linked-list.ts

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ export default class DoublyLinkedList<T> extends LinkedList<T> {
132132
return -1;
133133
}
134134

135+
getHead() {
136+
return this.head;
137+
}
138+
135139
getTail() {
136140
return this.tail;
137141
}

0 commit comments

Comments
 (0)