We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22d618f commit f106183Copy full SHA for f106183
206-reverse-linked-list.js
@@ -14,7 +14,7 @@ const reverseList = function(head) {
14
const pre = new ListNode(null, head)
15
let cur = head
16
while(cur.next) {
17
- let tmp = pre.next
+ const tmp = pre.next
18
pre.next = cur.next
19
cur.next = cur.next.next
20
pre.next.next = tmp
0 commit comments