Skip to content

Commit f106183

Browse files
authored
Update 206-reverse-linked-list.js
1 parent 22d618f commit f106183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

206-reverse-linked-list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const reverseList = function(head) {
1414
const pre = new ListNode(null, head)
1515
let cur = head
1616
while(cur.next) {
17-
let tmp = pre.next
17+
const tmp = pre.next
1818
pre.next = cur.next
1919
cur.next = cur.next.next
2020
pre.next.next = tmp

0 commit comments

Comments
 (0)